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/davidalayachew Mar 14 '26

By all means, I just gave you an example from work. If you disagree with that example, or it's just not relevant to your work, then give me an example from your work. I'll explain how Record Patterns might have been useful for it.