Y
Hacker News
new
|
ask
|
show
|
jobs
by
klysm
1338 days ago
I agree with this. The biggest thing that’s missing for me is sealed sum types. We’re getting there but progress is slow.
1 comments
therealdrag0
1338 days ago
Does Scala have that?
link
erik_seaberg
1338 days ago
Scala has sealed traits, which may only be implemented in the same file, and pattern matching must be exhaustive. At a glance, Java 17 has something similar (JEP 409 sealed classes).
link