3 ms·
I'm pretty sure that's doable now that there's WeakMap in ES2015.
by kolme 10y ago
I'm pretty sure that's doable now that there's WeakMap in ES2015.
- kevingadd 10y agoWeakMap isn't weak references. Easy mistake to make (most TC39 members don't understand the difference). WeakMap is a weird approximation of weak properties, where the weak relationship is in the opposite direction.
- spicyj 10y ago> most TC39 members don't understand the difference This seems unlikely.
- kevingadd 10y agoI beg to differ. Observe long threads like this one (which I started) https://esdiscuss.org/topic/what-is-the-status-of-weak-references https://esdiscuss.org/topic/what-is-the-status-of-weak-refer... It was not the only one, it crops back up periodically and the purpose/nuances of weakrefs have to be re-explained each time. To be fair, there are a lot of subtleties involved...