Hacker News new | ask | show | jobs
by zem 9 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.
1 comments

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.
It doesn't hurt here that the OCaml compiler is very fast, which makes for quick feedback loops when dealing with errors.