Draft JEP Announcement: "Computed Constants"

David Alayachew davidalayachew at gmail.com
Thu Jul 27 17:27:58 UTC 2023


Hello Per,

Thank you for posting this JEP!

It looks great. The solution is concise, clear, and simple, and any
complaints I have about verbosity can be mostly addressed with var. And
that list suggestion was especially nice. That's very neat.

I'd like to ask about the safety point. I certainly understand the reason
why it exists -- some developers will inadvertently create a circular
reference and end up causing problems.

However, I see a lot of utility for circular references too. Any chance
that we could allow devs to opt-in to circular references?

Earlier this month, I started 2 threads that were broaching the subject of
a very similar pain point to this one. Here they both are.

https://mail.openjdk.org/pipermail/amber-dev/2023-July/008129.html

https://mail.openjdk.org/pipermail/amber-dev/2023-July/008154.html

I'm curious how this Computed Constant solution would work out for the
problem I have. But in order for it to work, it would need to enable
circular references, hence my question.

But even without it, I see a lot of utility for this tool. I'm excited to
get to work prototyping with it.

Thank you for your time and help!
David Alayachew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/leyden-dev/attachments/20230727/4136bb0c/attachment.htm>


More information about the leyden-dev mailing list