-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
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
arr[var"end"]
is the same as arr[end]
#57269
arr[var"end"]
is the same as arr[end]
#57269
Comments
I think the parser should probably parse the The parse-atom code is here in the flisp parser: https://github.com/JuliaLang/julia/blob/master/src/julia-parser.scm#L2477 The primary lowering code that deals with begin/end is here: https://github.com/JuliaLang/julia/blob/master/src/julia-syntax.scm#L115-L130 although grep for |
That sounds right to me. |
Even if we change the parser though, printing would still be wrong unless it correctly detects the context, and additionally would be a huge pain to deparse in situations where the expr was not expected. It is still probably the right thing to do (like was done for true/false), but is quite separate from the correct printing |
Brought up in #56936 (thanks @martinholters for the example):
The text was updated successfully, but these errors were encountered: