{Weak|}{Map|Set}

Mark S. Miller erights at google.com
Thu Sep 15 09:11:22 PDT 2011


On Thu, Sep 15, 2011 at 8:41 AM, Sean Eagan <seaneagan1 at gmail.com> wrote:

>
> Also, for the iteration API of Map (i.e. IterableMap) and Set (i.e.
> IterableSet), why not integrate with iterators [1] :
>
> let m = new Map, s = new Set;
> ...
> for(i of m.iterator()) {
>  ...
> }
> for(i of s.iterator()) {
>  ...
> }
>

That is the intention -- it's what that mysterious "// todo: iteration" note
is about at <
http://wiki.ecmascript.org/doku.php?id=harmony:simple_maps_and_sets>. At the
time this was written, iterators hadn't yet settled down. Your suggestion
about iteration semantics and order is helpful. Thanks.


-- 
    Cheers,
    --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110915/61ab0c4f/attachment.html>


More information about the es-discuss mailing list