Should codes encode when applied as functions?

Issue #25 resolved
Johan Rosenkilde created an issue

If C is a code object, should C(w) be the same as calling C.encode(w)?

Somehow, it makes for rather elegant code, and it's in the spirit of a code as a mapping. And it's rather well-defined thanks to our preferred_encoder system

Comments (4)

  1. Log in to comment