3 ms·
Maybe it’ll grow on me as I get used to it :) but e.g. I was really confused about a nonsense error in a match statement until I realized that it was because of
by quamserena 11mo ago
Maybe it’ll grow on me as I get used to it :) but e.g. I was really confused about a nonsense error in a match statement until I realized that it was because of a nested match statement.
If you don’t use ocamllex/Menhir, what do you use for parsing & compiling?
- yawaramin 11mo ago> I was really confused about a nonsense error in a match statement until I realized that it was because of a nested match statement. This kind of confusion instantly goes away when you use auto-formatting with ocamlformat, which is the recommended formatting tool for the OCaml platform. It would line up your match cases in such a way that you would be able to almost immediately tell that the compiler is interpreting the dangling cases as part of the inner match.