-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
error when trying to assign a function name to a constant variable is confusing #9773
Labels
domain:error handling
Handling of exceptions by Julia or the user
Comments
Indeed. Though I'd rather say |
aviks
changed the title
error when trying to assing a function name to a constant variable is confusing
error when trying to assign a function name to a constant variable is confusing
Jan 14, 2015
This is in |
My main concern where the wording of the error. |
simonster
added
the
domain:error handling
Handling of exceptions by Julia or the user
label
Jan 14, 2015
Thank you. @JuliaBackports |
JeffBezanson
added a commit
that referenced
this issue
Feb 6, 2015
…function (cherry picked from commit 97381df)
backported in 5b25589 |
ihnorton
added a commit
that referenced
this issue
May 6, 2015
It's croaking [here](https://github.com/JuliaLang/julia/blob/79599ada444fcc63cb08aed64b4ff6a415bb4d29/src/interpreter.c#L260). We backported 97381df (fix for #9773) which gives the nice error message, but didn't remove the related assert, which was removed in 2604610.
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you get the error
When I saw this in a large code block I was very puzzled about what julia tried to tell my. While when the variable name is not a constant then the error seems much more understandable:
Where it is clear what julia means.
The text was updated successfully, but these errors were encountered: