W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2012

Re: [DOM4] Question about collections versus maps

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 10 Apr 2012 13:13:34 -0700
Message-ID: <CAAWBYDBxuk0EoyzZNEmLPQYZCeb=U_1hyW0jPPQf-9PKy4zSmA@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: public-webapps@w3.org
On Tue, Apr 10, 2012 at 12:39 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 4/10/12 3:35 PM, Alan Stearns wrote:
>> What is this group's API preference for a set of objects identified by
>> name?
> The real question is what the use cases are, no?  The NamedFlowMap approach
> doesn't provide a good way to enumerate the named flows; if that's a use
> case that needs supporting, then you need API that allows it.

According to current WebIDL spec, an object with a named property
getter exposes the list of names as own properties, so you can get
them with for-in enumeration.

Received on Tuesday, 10 April 2012 20:14:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:33 UTC