Classes: Enumerability of methods and constructor

Russell Leggett 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.


>
>
> /be
>
> ______________________________**_________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/**listinfo/es-discuss<https://mail.mozilla.org/listinfo/es-discuss>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120327/b9f9bdaf/attachment.html>


More information about the es-discuss mailing list