Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Bad error syntax on tuple with trailing comma #7858
Original bug ID: 7858
Consider the input "(foo,);;"
4.07.0 behaves as follows:
Trunk (4.08+dev) behaves as follows:
Both messages are bad, but arguably the new one is even worse.
@AndrewLitteken: unfortunately, we don't have a good story for syntax error messages right now, and we are planning to change how they are done in a couple OCaml versions. I would encourage you to focus on some other task, because this one is likely to (1) turn out to be more difficult than it looks and (2) have the solution space change quite a bit in 6-12 months.