Finding a "safety syntax" for classes

Kevin Smith khs4473 at
Tue Mar 20 12:58:06 PDT 2012

> Yeah - Java enforces this by making it an error if a call to super happens
> after any other statement.

Yes - and "magically" interleaving instance field initializers in between
the super call and the rest of the constructor body.  Taking this approach
would make desugaring more complicated.  I'm not "voting" either way though.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list