{Weak|}{Map|Set}

Andreas Rossberg rossberg at google.com
Thu Sep 15 09:16:19 PDT 2011


On 15 September 2011 17:47, Allen Wirfs-Brock <allen at wirfs-brock.com> wrote:
> No the normal use case for WeakMaps is simply to make associations between objects and arbitrary values.  The special GC behavior is necessary to avoid memory leaks, but that is a quality of implementation issue, not a use case.

Just like with tail calls, certain space optimizations are
semantically relevant, because code will rely on them and potentially
break if they are not performed.

/Andreas


More information about the es-discuss mailing list