News for hackers. Stuff that matters.
Re:Explore union types in C# 15 by debugnik on Wednesday April 08, 2026 @05:12PM (#47696345)
That is not what C# has just added to the language though. These union types so far are just wrappers over an `object` field which gets downcasted.

F# offers actual field sharing for value-type (struct) unions by explicitly sharing field names across cases, which is as far as you can push it on the CLR without extra runtime support.

There are no comments on this comment yet.