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

A form of pattern matching and switch expression has already made it to the language as of JDK 14. Those are paving the way for full blown pattern matching and sealed types:

https://cr.openjdk.java.net/~briangoetz/amber/datum.html

https://openjdk.java.net/jeps/360




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

Search: