Use cases for WeakMap

David Bruant david.bruant at
Sat May 14 16:03:08 PDT 2011

Le 15/05/2011 01:01, Oliver Hunt a écrit :
> No, I am wrong, if i have a key that i can ever reuse, the map is strong, because the key will keep the value live.  These aren't weak maps, they are strong maps that don't leak keys that have become dead.
> I can kind of see the value of this kind of structure, but I don't believe it is a WeakMap.
What is your definition of a WeakMap?
How is the current strawman different from this definition?


More information about the es-discuss mailing list