On Tue, Mar 26, 2013 at 9:46 AM, Tom Van Cutsem <[email protected]> wrote:
> 2013/3/26 Juan Ignacio Dopazo <[email protected]> > >> 2013/3/25 Erik Arvidsson <[email protected]> >> >>> WeakMap would not work in this specific case since a WeakMap cannot be >>> iteratered. >>> >> >> I thought there was an iterable WeakSet for ES6. Was it postponed to ES7 >> or just dropped? >> > > I doubt there was ever an *iterable* WeakSet proposal, since iteration > would make GC of the weakly held values observable. This is exactly the > same reason why WeakMap isn't iterable. > > Cheers, > Tom > > TC39 reached consensus on the inclusion of WeakSet, though it needs to be designed: https://github.com/rwldrn/tc39-notes/blob/master/es6/2012-09/sept-19.md#weakset Mark Miller proposed semantics for WeakRefs to satisfy security concerns: https://mail.mozilla.org/pipermail/es-discuss/2013-January/028542.html Both of these should be discussed at the next meeting. Rick
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

