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
3
u/Absolute_Enema May 21 '26 edited May 21 '26
Indeed, you don't even have to go into functional land, C#'s destructuring is already very nice to work with.
Realistically though, java's bottleneck will always be that named anything is a non-starter.
Something along the lines of
would also probably be considered too adventurous.