A post about using small functors instead of big functors for library authors


Dear all,
We made a post about encoding type invariants using small functors https://bucklescript.github.io/blog/2019/10/16/another-encoding, it is particularly helpful for JS backend which means better generated code and more friendly for dead code elimination.
This post has some content in depth, it is recommended for library authors.
Hope you like it!