chapel icon indicating copy to clipboard operation
chapel copied to clipboard

nicer error message for out-of-place `_`

Open DanilaFe opened this issue 9 months ago • 1 comments

Today, writing for _ in 1..10 will lead to a generic "syntax error". This is not an ideal error message, but seems like it ought to be easy enough to make it a nice error message. For instance, it would be nice to note that _ can only be used in declaration context like var _ = ... and loop tuple-expressions.

DanilaFe avatar May 07 '24 00:05 DanilaFe