Ocamlformat and the ocaml.org coding guidelines

ocamlformat

#1

I just wanted to draw the community’s attention to ocamlformat#501, which gathers together many of the coding guidelines for OCaml, with the goal of ensuring that ocamlformat can automate the formatting process.

As noted on the issue, the current coding guidelines are designed for humans, but we are increasingly getting tools such as ocamlformat and ocp-indent which mechanise the process. This is a good chance to get involved at this point in ocamlformat’s development with this, especially if you have a large codebase which could benefit from standardised formatting in the near future. Please weigh in at ocamlformat#501, especially with pointers to counterexamples to your own codebases if applicable.


Why does Jane Street's style guide use double semicolons (;;)?