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

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