Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mrsmrtss
· 7mo ago · 0 comments
Well, C# has more powerful pattern matching, only compiler exhaustiveness on types is missing today. In Java, sum types (sealed interfaces/classes) require all members to have the same parent, so they can be used only in very narrow cases.
Comments
[–]
vips7L
7mo ago
As opposed to C# that doesn't have any form of sum types?
[–]
mrsmrtss
OP
7mo ago
C# will have more advanced sum types this year, it's currently in preview.