Pain Points of OCaml
quamserena.com·6h·
Discuss: Hacker News
Flag this post

I am currently looking for a job! If you’re hiring a new grad in 2026 for for Rust, TypeScript, or React, feel free to shoot me an email at serena (at) quamserena.com.

I’ve been writing a compiler in OCaml for the language described by the dragon book for a class, and now that I’m about halfway through it I’ve found myself missing Rust in a few spots. In no particular order, the pain points I’ve hit while using OCaml:

Syntax

The OCaml syntax is... not great, its only redeeming quality being that it has no significant whitespace. There are some alternative syntax frontends for OCaml like ReasonML that fix these problems, but I didn’t know about them before starting the project. let...in syntax is weird, but I can chalk that up to an aesthetic choice; the real devil is i…

Similar Posts

Loading similar posts...