You must log in or # to comment.
Another piece from C#, now share the other way and give us all the union types, okay?
Discriminated unions have been In The Works™ for quite a while. I believe they were cut from the C# 12 roadmap. But maybe C# 13?
I think a source-generation based approach similar to
OneOf
isn’t unlikely.
That seems quite useful
Does using function as a const? Meaning: when a using variable is declared, is it immutable?