How to get the best out of ppx_deriving
How to print a value, for example for debugging? The OCaml language does not have a magic function that can print any value, nor a way to define how a particular type should “print” its values (like toString
in Java or __str__
in Python).