3 ms·
Surprised to see that C# doesn't have an Option/Optional type/class yet. Even Java made it over that hump.
by kerblang 3y ago
Surprised to see that C# doesn't have an Option/Optional type/class yet. Even Java made it over that hump.
- qwerasdf5 3y agoC# has had nullable types for quite a while.
- consilient 3y agoNot quite the same thing. Nullable types are (undiscriminated) unions, `Option` is a sum (= discriminated union).
- oaiey 3y agoIMHO, they are working already a while on discriminated unions. Not yet there.