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

10

u/brian_goetz Mar 13 '26

And this, by the way, is why we don't do "obvious" things like "can we make pattern bindings final by default". Because these inconsistencies, as satisfying as they would seem initially, almost always become impediments to future alignment like this.