Hacker News new | past | comments | ask | show | jobs | submit login

Just a heads-up, but sealed classes (basically sum types) and proper pattern matching is coming to Java.



After many years of not having them ;) I'll be very glad to be able to retire this well-used gripe.


We got Streams that don't short-circuit properly and Optionals that throw NullPointerExceptions, what creative fuck-ups do you reckon we'll get with sum types & pattern matching?


Shh, you've said the quiet part out loud ;)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: