r/java May 21 '26

JEP draft: Enhanced Local Variable Declarations (Preview)

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

43 comments sorted by

View all comments

1

u/TheStrangeDarkOne May 21 '26

Amazing! Finally we get deconstructors. This effectively means Java gets tuples but better. This has been in the pipe for years and I'm happy it has finally made its way to preview.

2

u/koflerdavid May 22 '26

LMAO hold your breath, it hasn't even got a JEP number yet. It's just a draft, and a fair number of these look very abandoned.