Maps and sets and insertion order

Axel Rauschmayer axel at rauschma.de
Sun Jan 4 08:55:23 PST 2015


I think it’s great that maps and sets honor insertion order.

Two ideas:

* Sets: Could the keys used for `Set.prototype.entries()` and `Set.prototype.forEach()` be the position of an element? IMO that’d be more useful than using the element as both key and value.

* Maps: Long-term, I’d love to be able to access and delete entries by position.

Axel

-- 
Dr. Axel Rauschmayer
axel at rauschma.de
rauschma.de



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150104/d4dc4cd5/attachment-0001.html>


More information about the es-discuss mailing list