Need to be able to register custom encoder's for arbitrary types
nhooyr opened this issue · 3 comments
nhooyr commented
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.
nhooyr commented
Need to also review and double check this is the best way to do things, I'm not entirely sure.
nhooyr commented
Don't think this is necessary. For now users can just create a function that returns a Field that encodes the type appropriately.
nhooyr commented
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.