Christian LindigOCaml Towards Clarity and GraceThis is a guide towards writing better OCaml code. We all like to write OCaml code that is correct, maintainable, efficient, and maybe…Nov 19, 20181Nov 19, 20181
Christian LindigMonadic Error HandlingExplaining what a monad is has become a classic exercise. One can find hundreds of articles about the topic and this is my take. It is low…Jun 7, 2017Jun 7, 2017
Christian LindigMaking a Directory in OCamlWhat could go wrong? Create a directory with a given set of permissions and ownership. And if it exists already, fix permissions and…Oct 9, 2016Oct 9, 2016
Christian LindigRecipes for OCamlLexOCamlLex is the scanner generator that is part of the OCaml distribution. This article presents some examples for solving common scanning…Sep 10, 20152Sep 10, 20152
Christian LindigDo Not OpenIn OCaml, access to a non-local value like the printf function requires using the dot notation: Printf.printf. Below is a simple hello.ml…Sep 7, 20151Sep 7, 20151