News for hackers. Stuff that matters.
Re:A comparison of Rust's borrow checker to the one in C# by Kwpolska on Thursday October 31, 2024 @07:32PM (#42012618)
> relying on an ancient version of netstandard

They require 2.0, which is the only version that is actually useful, since it supports .NET Framework 4.x.v

Re:A comparison of Rust's borrow checker to the one in C# by Ygg2 on Friday November 01, 2024 @04:02AM (#42014892)
You do realize netstandard 2.0 is 7 years old right? That it misses a ton of functionality compared to current dotnet. Stuff like MaybeNull annotation .
Re:A comparison of Rust's borrow checker to the one in C# by Kwpolska on Friday November 01, 2024 @04:52AM (#42015125)
It misses a ton of functionality compared to the current .NET (Core), but it does not miss much compared to .NET Framework 4.8. The reason why source generators require it is because they may be run by Visual Studio, which is built on top of the classic .NET Framework. .NET Standard 2.0 is a good trade-off IMO if you need to support both the classic Framework and the modern .NET.
Re:A comparison of Rust's borrow checker to the one in C# by Ygg2 on Friday November 01, 2024 @05:56AM (#42015433)
It missed ton of functionality compared to C# in 2022 (when I last used it). It's about as old as Java 8.
Re:A comparison of Rust's borrow checker to the one in C# by neonsunset on Friday November 01, 2024 @08:05AM (#42016114)
If you failed to set <LangVersion> to 12 and maybe do `dotnet add package PolySharp` then the source generators API is probably not for you. It's not a language issue :)