On Thu, Sep 15, 2011 at 8:41 AM, Sean Eagan <seaneag...@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
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss