2 ms·
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.
by WorldMaker 3y 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 https://github.com/dotnet/csharplang/issues/7016)
- chem83 3y agoThis seem to be a longer running one: https://github.com/dotnet/csharplang/issues/113 https://github.com/dotnet/csharplang/issues/113