Confusing error message

question

#1

Am I only one who has been confused with the following error message?

julia> pi = 3
ERROR: cannot assign variable MathConstants.pi from module Main

The error message sounds like, I cannot assign the variable pi (to something else), rather than I cannot assign the value 3 to the variable pi. How about this? Don’t it sound more clear to you?

ERROR: cannot assign a value to variable MathConstants.pi from module Main


#2

Yes, I think your suggestion is more clear.


#3

I’ve submitted this proposed change as PR #30548.


#4

Thanks @waldyrious