This needs tidying up, there's two or three routes I can go down:
- Remove the need to instantiate an encoder class by making the methods
@classmethod
Change the paradigm to having the encoding settings set at object construction decided against
- Use class inheritance far more to allow customisation at the inheritance level, using mixin classes e.g. there might be a
StreamEncoder base class and a MappingEncoder mixin class. This would probably require deprecating the functional interface entirely.
This needs tidying up, there's two or three routes I can go down:
@classmethodChange the paradigm to having the encoding settings set at object constructiondecided againstStreamEncoderbase class and aMappingEncodermixin class. This would probably require deprecating the functional interface entirely.