The current addType API, when applied to 3rd party classes, requires monkeypatching the 3rd party classes. It would be nice to devise an API for registering a full set of CustomType callbacks that would apply on a type. The library could still monkeypatch as a matter of implementation, but perhaps using Symbols so it cannot conflict with existing symbols.
The current
addTypeAPI, when applied to 3rd party classes, requires monkeypatching the 3rd party classes. It would be nice to devise an API for registering a full set ofCustomTypecallbacks that would apply on a type. The library could still monkeypatch as a matter of implementation, but perhaps usingSymbols so it cannot conflict with existing symbols.