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.
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.