Using static class members instead of free functions was a mistake from the early days. The idea was to use the class for namespacing, but we never ran into any kind of naming collision and can just import fromHex/toHex directly.
This makes using them much simpler, especially avoiding all those destructions like const { toHex } = Encoding;
If this is good, I can do the same for the remaining functions in Encoding
Using static class members instead of free functions was a mistake from the early days. The idea was to use the class for namespacing, but we never ran into any kind of naming collision and can just import
fromHex
/toHex
directly.This makes using them much simpler, especially avoiding all those destructions like
const { toHex } = Encoding;
If this is good, I can do the same for the remaining functions in
Encoding