OCaml Tips: Multiple Let Bindings
One thing that was a bit weird for me in OCaml early on was how to introduce multiple let bindings (e.g. in the body of a function definition). Think something like this in Clojure: (let [a 1 ...
One thing that was a bit weird for me in OCaml early on was how to introduce multiple let bindings (e.g. in the body of a function definition). Think something like this in Clojure: (let [a 1 ...
Update (2026): I’ve written an updated version of this article that covers the modern OCaml tooling stack – neocaml + ocaml-eglot instead of tuareg + merlin-mode. I’ve promised you articles about ...
Live as if you were to die tomorrow. Learn as if you were to live forever. – Mahatma Gandhi For as long as I’ve been into programming I’ve been learning some new programming languages on the s...
If you’re into programming puzzles you probably know that there’s a whole class of problems about doing something (e.g. some calculations) with the digits of a number. This means you need to break ...
Many programming languages have a function for combining the elements of multiple collections (e.g. arrays or lists) together. Typically this function is named zip. Here’s an example from Haskell: ...
Today I saw a clever bit of Clojure code involving clojure.string/replace, that reminded me how powerful the Clojure standard library is. I guess pretty much everyone knows that replace is normally...
Pretty often I receive emails like this one:1 I was curious if you’re open to guest posts and if my suggested topic would be of interest to you. I’d like to write an article for you about the p...
It’s no secret that I love email. One of the great things about email addresses is that they are public and that everyone can get in touch with you this way. That’s also one of the more annoying as...
A little bit over a year ago I switched from Gmail to Fastmail for my personal email. Looking back, I couldn’t be happier with my decision. The more I’ve used Fastmail, the more I liked it. Working...
Yesterday the demise of Atom was a very hot topic for many programmers.1 One thing I noticed in the comments here and there was that the original team behind Atom is now working on a new editor, na...