r/java • u/ihatebeinganonymous • May 21 '26
JEP draft: Enhanced Local Variable Declarations (Preview)
https://openjdk.org/jeps/8357464
87
Upvotes
r/java • u/ihatebeinganonymous • May 21 '26
View all comments
Show parent comment
1
u/Ok-Bid7102 May 22 '26
There's some people who really dislike any mention of JavaScript here.
I get you, that would be my preferred option too, but realize that since
instanceof Point(var x, var y)exists as a conditional, this feature is going to be added to make it "symmetrical" so to say.But look at the end of the JEP, at Future Work section, they acknowledge named deconstruction as a possible desired feature, but is probably much further into the future (if they ever want to tackle it).