News for hackers. Stuff that matters.
Re:Explore union types in C# 15 by AndrewDucker on Wednesday April 08, 2026 @10:15AM (#47690557)
Yes, but see the section on custom unions* - you can write non-boxing unions/generators.

* https://devblogs.microsoft.com/dotnet/csharp-15-union-types/...

Re:Explore union types in C# 15 by mwkaufma on Wednesday April 08, 2026 @12:21PM (#47692349)
Yes, there's a compat-shim in the stdlib/runtime, but not in the language syntax. E.g. it by-definition won't do escape-analysis and optimize discriminated value-types with the first-class keyword.
Re:Explore union types in C# 15 by Izikiel43 on Wednesday April 08, 2026 @04:14PM (#47695689)
For now