Traversal in insertion order for Set.prototype.add/delete

Mark S. Miller erights at google.com
Wed Apr 23 19:48:26 PDT 2014


We need a deterministic order. What deterministic order do you suggest? Why
would it be better?


On Wed, Apr 23, 2014 at 7:36 PM, Qantas 94 Heavy <qantas94heavy at gmail.com>wrote:

> Maybe my brain's just fried, but is there any reason for Set.prototype.add
> and Set.prototype.delete enforcing iteration "by original insertion order"?
> There aren't any side effects that I know of by iterating through the list
> of elements in some other order, as all the elements of a set are meant to
> be unique. Am I missing something?
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>


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


More information about the es-discuss mailing list