Use cases for WeakMap

Oliver Hunt oliver at apple.com
Mon May 16 13:15:16 PDT 2011


On May 16, 2011, at 1:07 PM, Brendan Eich wrote:
> WeakMaps satisfy this more general non-enumerable object-keyed cache use-case well, too -- at least as far as I can tell. We'll be building on the Firefox nightly implementation to find out more.

I think my problem with this is that WeakMap to me imply something other than what is being specified.  What is being specified here is essentially a non-enumerable strong map, not a weakmap in the sense that i have ever known it.

> /be

--Oliver

> 
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss



More information about the es-discuss mailing list