Classes: Enumerability of methods and constructor
russell.leggett at gmail.com
Tue Mar 27 06:39:37 PDT 2012
On Tue, Mar 27, 2012 at 7:22 AM, Brendan Eich <brendan at mozilla.com> wrote:
> Andrea Giammarchi wrote:
>> One thing does not scale well in current prototype logic, what has been
>> flagged in the proto is not inherited with same descriptor per each
>> instance ( arguable if expected or not )
> You mean when the prototype property is shadowed in the instance by a
> property of the same name created by assignment?
> That's true and it goes back to the dawn of time. It's not going to
> change, but as you note, ES5 provides tools other than assignment to create
> properties with non-default attributes.
At least if you stick with the class syntax and extension to overwrite
parent properties, it will remain consistent.
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss