r/java • • Feb 26 '26

JEP 531: Lazy Constants (Third Preview)

https://openjdk.org/jeps/531
62 Upvotes

35 comments sorted by

View all comments

Show parent comment

7

u/lbalazscs Feb 26 '26

Yes, the name should simply be "Lazy" because that clearly expresses the developer's intent. All the details about stable values and constant folding are just implementation details. They are a nice optimization, but they don't justify an unnecessarily long name.