chapel
chapel copied to clipboard
nicer error message for out-of-place `_`
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.