Kinda sad you can’t use enum members as keys in a WeakMap. Gotta use SplObjectStorage which can have garbage collection (or lack thereof) implications.
The latter is not nearly as concise, either.

| Blog | https://dyrynda.com.au |
| GitHub | https://github.com/michaeldyrynda |
Kinda sad you can’t use enum members as keys in a WeakMap. Gotta use SplObjectStorage which can have garbage collection (or lack thereof) implications.
The latter is not nearly as concise, either.