News for hackers. Stuff that matters.
Re:dotNET (OK, C#) gets union types by lostmsu on Sunday May 24, 2026 @07:05AM (#48256293)
> and many of them can't be fixed... And the boxing with C# unions can and will be addressed later

No, they won't. C# already got itself into a corner with 32 bit arrays and 32 bit spans. And if unions are introduced as reference only that will never be fixed due to binary compatibility requirement.

Re:dotNET (OK, C#) gets union types by longor1996 on Monday May 25, 2026 @06:34AM (#48265344)
The new C# unions are not reference-only. The attribute/interface allows implementing custom union types by writing `TryGetValue`-methods instead of a single `object? Value {get;}`. The compiler handles this transparently.