ES4 draft: Object

Garrett Smith dhtmlkitchen at gmail.com
Thu Mar 6 17:57:49 PST 2008


On Wed, Mar 5, 2008 at 7:19 PM, Brendan Eich <brendan at mozilla.org> wrote:
> Hixie argued strongly on IRC today for something that does not

>  So, rather than add an ugly "dontenum" keyword that would be seldom
>  used, the group preferred a built-in method. But this may have been a
>  minor mistake. For those interested, here's the full rationale as I
>  remember it:
>

obj = {dontenum length: 10} );

vs.

obj = {length: 10};
obj.propertyIsEnumerable("length", false);

Which is more ugly?

Garrett

>
>  /be
>  _______________________________________________
>  Es4-discuss mailing list
>  Es4-discuss at mozilla.org
>  https://mail.mozilla.org/listinfo/es4-discuss
>



More information about the Es4-discuss mailing list