Hacker News new | ask | show | jobs
by WorldMaker 1048 days ago
Given few people anticipated ValueTuple and C# adding a more direct tuple syntax, I feel like it is only a matter of time before C# adds discriminated unions.

(There are multiple proposals tracking the idea. This seems the most comprehensive and "central": https://github.com/dotnet/csharplang/issues/7016)

1 comments

This seem to be a longer running one: https://github.com/dotnet/csharplang/issues/113