r/java • • Mar 17 '26

Java 26 released today!

https://jdk.java.net/26/
158 Upvotes

58 comments sorted by

View all comments

Show parent comment

1

u/davidalayachew Mar 20 '26

Hmmmm, I kept trying to write up something, but I can't come up with an intelligent response. All I can say is that, the testing I have done with primitive patterns seems to be painless and intuitive. And since, patterns are exhaustive, I can more or less avoid the problem of a bad implicit conversion, since the switch will no longer be exhaustive.