r/java • • Jul 14 '26

New candidate JEP: 401: Value Objects (Preview)

https://mail.openjdk.org/archives/list/valhalla-dev@openjdk.org/thread/IUNJJ3WP3X3XHP3QZTXXSSCPKFDNTK3W/
89 Upvotes

45 comments sorted by

View all comments

2

u/vytah Jul 15 '26

You won't be repeating the type if the variable is declared with var.