Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
pharmakom
4y ago
0 comments
Share
I don’t
think
sealed classes offer exhaustive pattern matching. Instead you have an if-else ladder of instanceof checks. This is not the same as most union type implementations.
0 comments
default
newest
oldest
kaba0
4y ago
They do with switch expressions. It is only type based for now, but deconstructs are coming with full blown pattern matching a la Haskell.
j
/
k
navigate · click thread line to collapse