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