Predictable Performance of OCaml's Module System
The third issue of Learn OCaml the Hard Way is here! Check it out now!
OCaml’s module system can be a powerful tool for building generic code and structuring systems. Functors are functions from modules to modules and they serve an important role for the power of module system.
However, I want to know if functors (and the module system) can be optimized away by the OCaml compiler. And here’s what I found…