Hi all,

      I read an article[1] about the new features of Java 11 just now, and
find "JEP 309: Dynamic Class-File Constants"[2] can help us implement lazy
constants elegantly, e.g. `@Lazy static final Object SOME_LAZY_CONST =
<heavy lifts>`. The feature is very useful, so I propose to add *native*
support for lazy constants in some future version of Groovy.

      Any thoughts?

Cheers,
Daniel.Sun
[1]
https://javabeginnerstutorial.com/core-java-tutorial/java-11-new-features/
[2] https://openjdk.java.net/jeps/309



-----
Apache Groovy committer & PMC member 
Blog: http://blog.sunlan.me 
Twitter: @daniel_sun 

--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Reply via email to