Need to be able to register custom encoder's for arbitrary types
nhooyr opened this issue · comments
E.g. how we have a custom encoder for xerrors.Formatter in the library, someone might want to encode an object they cannot edit in a different way than the default reflection/interface encoder.
Need to also review and double check this is the best way to do things, I'm not entirely sure.
Don't think this is necessary. For now users can just create a function that returns a Field that encodes the type appropriately.
Oh lol they can do it properly, just need a custom sink. Going to leave this one out since we have not really had any need for it aside from errors.