News for hackers. Stuff that matters.
Re:.NET 6 is now in Ubuntu 22.04 by louthy on Tuesday August 16, 2022 @10:24AM (#32483147)
> too few selling points

There are significant performance improvements, and the new language features of C# depend on the later versions - that might not be such a big deal, but it will become more acute as the language improves.

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.
Re:.NET 6 is now in Ubuntu 22.04 by WorldMaker on Tuesday August 16, 2022 @02:49PM (#32487055)
Also, proper High DPI support in both WinForms and WPF in .NET 5+. There is starting to be a very notable difference there between applications compiled on .NET Framework (or VB6) versus those recompiled for .NET 5+ WinForms/WPF with older apps not just looking dated, but sometimes aggravatingly unusable/inaccessible on modern monitors.
Re:.NET 6 is now in Ubuntu 22.04 by int_19h on Tuesday August 16, 2022 @05:14PM (#32489038)
I don't think I've ever seen a WPF app broken on hi-DPI, and I use a 4K display with 225% scaling. It was designed from grounds up as resolution-independent.
Re:.NET 6 is now in Ubuntu 22.04 by WorldMaker on Tuesday August 16, 2022 @06:27PM (#32489811)
WPF does in general have many fewer issues than WinForms and the ones I've seen that were basically just broken were all WinForms. There's still some changes to WPF that are noticeable if you are looking for them (mostly in the default controls).