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
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>
I think it’s great that maps and sets honor insertion order.
Two ideas:
Sets: Could the keys used for
Set.prototype.entries()
andSet.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