3 ms·
Explicit opening and closing structures help locate and explain errors better. In an absence of an entirely obvious, unambiguous, commonly known way of formatt
by nine_k 7y ago
Explicit opening and closing structures help locate and explain errors better.
In an absence of an entirely obvious, unambiguous, commonly known way of formatting, it's helpful.
- pjmlp 7y agoBecause OCaml aware editors/IDE don't exist.
- pyrale 7y agoI'm not sure to understand how it helps. Are you talking about parsing errors ? As for formatting, if you manage to get an AST, what would be made easier by braces ?
- nine_k 7y agoYes, parsing errors. In a number of cases you can legitimately continue to interpret a text well past the missing closing token, and signal an error in a place which does not seem related. If you already have a correct AST, you can render it whatever way you want.