W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2011

Re: [WebIDL] troublesome names, property attributes and related issues

From: Mark S. Miller <erights@google.com>
Date: Thu, 25 Aug 2011 18:46:38 -0700
Message-ID: <CABHxS9hsY3sYRza-jXez3hoCiT_uj_Ndq14yb01h7ACTpCorTw@mail.gmail.com>
To: Allen Wirfs-Brock <allen@wirfs-brock.com>
Cc: public-script-coord@w3.org
On Thu, Aug 25, 2011 at 4:37 PM, Allen Wirfs-Brock <allen@wirfs-brock.com>wrote:

> If you use the ES built-in objects as examplars you will generally see that
> it is only properties that in some way represent actual program data that
> are made  [[Enumerable]]: true.
>

I agree with Allen on all points. To emphasize this last point, remember
that JSON.stringify(obj) skips all non-enumerable properties of obj. Since
WebIDL constants do not vary, there's little reason to include them in a
JSON serialization and much reason not to.


-- 
    Cheers,
    --MarkM
Received on Friday, 26 August 2011 01:47:17 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:04 UTC