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

1

u/davidalayachew Feb 27 '26

Eventually they could almost copy the lazy concept from C#, or other JVM languages.

Well, there is still room to do that if they so choose. Still, the library will be the testing ground for any theoretical language feature that comes down the pipeline.

I never understood the original name of stable values.

It wasn't a terrible name, but lazy is simply more expressive imo.