Using Object Literals as Classes
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss