classes and enumerability

Yehuda Katz wycats at gmail.com
Fri Jan 30 22:04:28 PST 2015


Worth noting: DOM "classes" won't be the only objects a JavaScript user
interacts with that have enumerable methods. Virtually 100% of class
libraries in JavaScript, including ones created after ES5, create classes
with enumerable methods.

I don't think that this change has a prayer of making enumerable methods
feel "weird" in JavaScript any time soon.

Yehuda Katz
(ph) 718.877.1325

On Fri, Jan 30, 2015 at 8:58 PM, Brendan Eich <brendan at mozilla.org> wrote:

> Andrea Giammarchi wrote:
>
>> Do we agree this class decision was a good one? Perfect, then let's move
>> on to another thread and discuss how things could be better from "both
>> worlds" point of view in the future.
>>
>
> I'm not sure why you replied to me, since I (and everyone on TC39) has
> agreed to make the decision for class methods to be non-enumerable, so we
> must all agree that decision was a good one! :-P
>
> Probably you're replying to Anne, indirectly.
>
>
> /be
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150130/c943ac7a/attachment.html>


More information about the es-discuss mailing list