Remix.run Logo
zem 3 days ago

if nothing else, you could guess that a compilation error within a function body would still let other functions be compiled, and proceed on that basis.

jallmann 3 days ago | parent [-]

Depending on the error, the grammar, and the parser, it may not be possible to close the function body. Most compilation units are file-based for this reason.

tlavoie 3 days ago | parent [-]

It doesn't hurt here that the OCaml compiler is very fast, which makes for quick feedback loops when dealing with errors.