The subject is ugly mostly for tests. If one test needs custom decoder, but another expects to use original one this case is sucks. As a protection, you can offer a function to obtain a registered decoder so that it can be restored ...
The subject is ugly mostly for tests. If one test needs custom decoder, but another expects to use original one this case is sucks.
As a protection, you can offer a function to obtain a registered decoder so that it can be restored ...