|
|
|
|
|
by aryonoco
26 days ago
|
|
C# finally has Sum types. Not quite discriminated unions, but close. With an exhaustive checker with switch statements. Now if only it made creating unique types easy, so I wouldn’t have to use a library like VOgen, the language would be nearly as good as F# |
|
You can start reading through it starting at: https://github.com/dotnet/csharplang/blob/main/proposals/dis...
Definitely want to move to get this in asap :)