News for hackers. Stuff that matters.
Re:.NET 6 is now in Ubuntu 22.04 by ok123456 on Tuesday August 16, 2022 @10:55AM (#32483599)
You can get most of the new language features to work with .Net Framework by overriding the LanguageVersion in the build. I did this to get nullable type annotations and pattern matching to work when I inherited a .Net Disaster.

There are a few that require compiler interop which don't work, like using new syntax on records for specifying the fields (e.g., "record A(int a, int b)").

Re:.NET 6 is now in Ubuntu 22.04 by louthy on Tuesday August 16, 2022 @11:29AM (#32484126)
Not all, some rely on the runtime, like static interface methods.

Records can be enabled like this [1]

[1] https://github.com/louthy/language-ext/blob/main/LanguageExt...

Re:.NET 6 is now in Ubuntu 22.04 by ok123456 on Tuesday August 16, 2022 @04:26PM (#32488396)
I found that, but I didn't want to introduce more complexity into the build by requiring those same stubs be defined for just a slight advantage.