Questioning WeakMap.prototype.clear (was: Private symbols as WeakMap sugar)
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.
The best way to contribute to the ES6 development process is to read and comment on the actual specification drafts.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss