Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kerblang
· 3y ago · 0 comments
Surprised to see that C# doesn't have an Option/Optional type/class yet. Even Java made it over that hump.
Comments
[–]
qwerasdf5
3y ago
C# has had nullable types for quite a while.
[–]
consilient
3y ago
Not quite the same thing. Nullable types are (undiscriminated) unions, `Option` is a sum (= discriminated union).
[–]
oaiey
3y ago
IMHO, they are working already a while on discriminated unions. Not yet there.