Finding a "safety syntax" for classes

Rick Waldron waldron.rick at gmail.com
Tue Mar 20 12:34:24 PDT 2012


>
> Another option here would be:
>
> class Snake extends Animal {
>     // Using "new" ; )
>     new(name) : super(name) {}
> };
>
>
This could be visually mistaken for an object literal.

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


More information about the es-discuss mailing list