BTW, while I’m not so much a fan of Rust documentation, they have plugged in a way to have code examples in the documentation be compiled when generating the doc (IIUC), which provides a sort of regression test. Besides, these code blocks are also equipped with a hyperlink to the online Rust playground. I haven’t checked recently, but I don’t think these features are currently possible in OCaml documentation, are they? As OCaml is also an interpreted language, and as jbuilder utop
exists, it may even be easier than in Rust to implement something like this?
3 Likes