Finding a "safety syntax" for classes

Kevin Smith khs4473 at gmail.com
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.

kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120320/6f339b88/attachment.html>


More information about the es-discuss mailing list