W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2014

[Bug 26183] make it easier to define an iterator on an interface that iterates over a set of values

From: <bugzilla@jessica.w3.org>
Date: Thu, 02 Oct 2014 04:36:52 +0000
To: public-script-coord@w3.org
Message-ID: <bug-26183-3890-GxTjC9hz01@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26183

--- Comment #19 from Cameron McCormack <cam@mcc.id.au> ---
(In reply to Cameron McCormack from comment #18)
> Prose would be used to define the values that are exposed, like with the
> #dfn-iterate-a-list-of-values definition I just added.  The behaviour of
> entries(), keys(), values(), @@iterator, forEach(), get() and has() would
> all be defined automatically based on that list of values.  Prose would be
> required to define what happens for clear(), delete() and set().

Or, reading Domenic's comment again, the list of values would be manipulated by
clear() etc. too, and so we could omit prose for them if no special behaviour
is needed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Thursday, 2 October 2014 04:37:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:23 UTC