Re:The Next Step for Generics
by apta on Tuesday June 16, 2020 @05:10PM
(#23544160)
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