Feedback on JEP draft: Lazy Constants (Second Preview)
Constantine Plotnikov
constantine.plotnikov at gmail.com
Wed Sep 24 19:10:12 UTC 2025
Hello!
It is nice to have a more easy to understand name for LazyConstant.
However, I would like it to be simplified further to "Lazy" instead of
"LazyConstant". The name `LazyConstant` is just too long and it will
pollute method signatures and field declarations. While there might be
other implementations of a lazy value concept, this is a good and sensible
one and it is what people usually expect from a lazy value. This is a valid
design choice for a lazy value like being a mutable is a design choice for
list type. If people want other lazy semantics, they could use another
package for their package name.
"LazyConstant" is possibly more explicit, but "Lazy" is much better from
the aesthetic point of view. And in both cases people have to learn a new
name and associate semantics with it. Please allow code to be more
beautiful.
Best Regards,
Konstantin Plotnikov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20250924/1bc2926f/attachment-0001.htm>
More information about the core-libs-dev
mailing list