Using variables before initializing them (was: Forward declaring the identity of an object)
David Alayachew
davidalayachew at gmail.com
Tue Jul 4 13:46:02 UTC 2023
Looks like the first email never made it through, so let me copy and paste
it here.
Hello Amber Dev Team,
I am starting this thread to start a spin off discussion from the "Question
about circular references" thread above.
In short, RedIODev mentioned something in passing that piqued my interest.
The idea was the ability to reference a declared, but uninitialized
variable (a reference), and allowing that reference to be passed to, let's
say, another constructor, but not permitting derereference until the
variable in question has fully been initialized.
I wanted to get people's perspectives on this. Is this a good idea? A bad
one? Is this too difficult to do? Not that difficult? Please let me know
your thoughts.
Thank you for your time and insight!
David Alayachew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20230704/6e2c2edd/attachment.htm>
More information about the amber-dev
mailing list