Re:It's time to let go, Apache Software Foundation
by pjmlp on Tuesday September 26, 2023 @05:13AM
(#37656514)
No it won't, as it might be using the breaking for change introduced in C# 5, or .NET Framework features not made available on .NET Core.
Likewise C and C++ have had enough breaking changes since 2010.
Re:It's time to let go, Apache Software Foundation
by neonsunset on Tuesday September 26, 2023 @09:43AM
(#37659200)
It depends. Some projects can be retargeted to netstandard2.0/net6(8).0 without any changes at all, some require minor update of dependencies and some other - do face breaking changes in library code because APIs did get deprecated.
With that said, neither IL nor C# itself had any changes breaking forward compatibility (aside from a very early change to foreach recently discussed here).
> You would have exactly the same problems if you tried to compile old K&R C code or C++ code from 20 years ago using modern compilers. Or tried to feed modern C# code to a compiler from 10 years ago.
If you feed 10 year old C# to a modern compiler it will compile it fine. I’d imagine most C and C++ of even 20-year vintage will still compile. The issue is of forward compatibility, not backwards.