We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The in predicate clashes with the in keyword in for loops necessitating the use of excessive parens, e.g.
in
for
for (x,y) if x > y in pairlist do assert(x>y). end
produces the error,
error: expected 'in' expression in for loop found 'do'.
This is due to the fact that in pairlist is interpreted as part of the conditional pattern
in pairlist
(x,y) if x > y in pairlist
By removing the predicate in this ambiguity will disappear.
The text was updated successfully, but these errors were encountered:
The workaround is to put the pattern expression into parentheses,
for ((x,y) if x > y) in pairlist do assert(x>y). end
There is no good way to fix this because here the language is inherently ambiguous.
Sorry, something went wrong.
No branches or pull requests
The
in
predicate clashes with thein
keyword infor
loops necessitating the use of excessive parens, e.g.produces the error,
This is due to the fact that
in pairlist
is interpreted as part of the conditional patternBy removing the predicate
in
this ambiguity will disappear.The text was updated successfully, but these errors were encountered: