Draft Spec for Second Preview of Flexible Constructor Bodies (JEP 482)
Stephan Herrmann
stephan.herrmann at berlin.de
Sun Jun 2 21:36:03 UTC 2024
Am 31.05.24 um 00:55 schrieb Maurizio Cimadamore:
>
> [...]
>
> That said, I'm not sure how common of a pattern this really is. All the examples
> I've seen so far have a certain artificial vibe to them. The kind of stuff
> compiler writers like us might want to write in a test :-)
that's our job, isn't it? :)
> It would be helpful I think to run some analysis and get some numbers. I'll see
> if I can do that, I think I know where to look.
Do you see a problem in the rules as explained by Dan? From what I understood so
far those look fine to me (given his explanation :) ). If we can draw a clean
and precise line between safe and unsafe code, why should we care about
probabilities of people using the capabilities to the last dot?
Do you consider the proposed rules too complex to implement cleanly, or too
complex to explain to users?
Defining early construction contexts relative to specific enclosing classes
makes a lot of sense, if you ask me. Still, as long as we haven't implemented
this change I might be missing some murky detail.
thanks,
Stephan
More information about the amber-spec-experts
mailing list