export DefaultEncoder #23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Especially given the use of the typeId helper in the DefaultEncoder it is useful to have exported so we can create a new encoder with some methods changed.
No, I don't think this is worth exporting. It's 6 lines of very simple code, you can duplicate it at no cost.
It's not because of the typeID method, as explained
True, it's actually ten lines. But still, making this something people can extend involves explaining how precisely it works so that people are able to correctly work with it and get their compare function right, and that still seems more complexity than it's worth.
Honestly this would be appreciated either way, the parameter is already there for folks to define their own encoder whether the default is exported or not and the docs are somewhat lacking around this.
Pull request closed