classes and enumerability

Jeremy Martin jmar777 at gmail.com
Tue Dec 23 20:37:42 PST 2014


In all the discussions I've observed, the primary argument for
enumerability has been consistency with ES5 prototype conventions. I don't
think I've seen a single argument in favor, though, based on the actual
intrinsic merits of that behaviour.

So, do such arguments exist?
On Dec 23, 2014 11:26 PM, "Gary Guo" <nbdd0121 at hotmail.com> wrote:

> I would say enumerate through classes' or instances' properties are a
> strange use and should be discouraged. I would prefer nothing but instance
> properties to be enumerable. To me, it is illogical for methods to be
> enumerable.
>
> _______________________________________________
> 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/20141223/bfd5501d/attachment-0001.html>


More information about the es-discuss mailing list