JavaScript WeakMaps are not actually weak: they refer strongly to their contents as long as the key is alive.
This brings the list of imprecisely-named ECMAScript APIs to:
Map → OrderedMap
Set → OrderedSet
Promise.race → Promise.anySettled
WeakMap → Ephemeron
-
-
Replying to @mathias
Bah, they're plenty weak about the key, it's fine.
But jayzus, Ephemeron would have been a terrible name.4 replies 0 retweets 15 likes -
Replying to @tabatkins @mathias
It’s great, you just have to go all the way...pic.twitter.com/78puxAl72b
2 replies 1 retweet 4 likes
Replying to @bhathos @tabatkins
Covenant = Promise;
10:57 PM - 3 Jul 2019
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.