Using Object Literals as Classes

Kevin Smith khs4473 at gmail.com
Sat Mar 17 09:18:07 PDT 2012


>
> Currently, <| sets the [[prototype]] field of the RHS object,
> and -if the RHS is a function literal- also specifies the [[prototype]]
> field of objects generated from it. I suggest to remove that special
> case for function RHS.


Ultimately, this is my suggestion as well.  And for class construction,
bite the bullet and come up with a declarative class syntax.

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


More information about the es-discuss mailing list