classes and enumerability
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
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss