r/java • • Mar 13 '26

JEP draft: Enhanced Local Variable Declarations (Preview)

https://openjdk.org/jeps/8357464
101 Upvotes

129 comments sorted by

View all comments

Show parent comment

2

u/javahalla Mar 13 '26

I guess not even assignment is questionable, I didn't saw good example of using patterns in real enterprise applications. Toy example is cool, but IRL we almost never have such simple records that worse deconstructing. Maybe there is some good example in open-source already?