Questioning WeakMap.prototype.clear (was: Private symbols as WeakMap sugar)

Allen Wirfs-Brock allen at wirfs-brock.com
Mon Jan 21 09:58:15 PST 2013


On Jan 21, 2013, at 9:38 AM, Andrea Giammarchi wrote:

> somebody asked why clear() is needed, when if you have the reference you can simply ref = new WeakMap; instead of clearing, while clear() exposes undesired side effects.
> Said that, even localStorage lets us remove all keys even if it wasn't us setting them so ... well, I guess we can survive then with clear().
> 
> This is specially for Rick, since it's holidays today and I am bored home :D
> Where is exactly the latest state of es6 collections? I have no idea how I should update mine accordingly, please point me to the very latest, most updated, agreed link 'cause I am confused.


http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts 

The best way to contribute to the ES6 development process is to read and comment on the actual specification drafts.

Allen


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130121/055bb268/attachment.html>


More information about the es-discuss mailing list