You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe a common mistake for people coming with some programming experience in other languages might be trying to call a function with positional arguments. So eg if I call call a function like so sgn_x = new_x / abs[new_x] I will get an error like:
Unknown expression
(passed string)
Unknown expression "abs"
54| sgn_x = new_x / abs[new_x]
^
Did you mean: "abs"?
I think in this particular case the error should instead mention the parameter needs to be given a name and possible offer a fixit at least for single parameter built-ins where the intention should be easily guessable.
The text was updated successfully, but these errors were encountered:
Agreed! We have all the information required, but not a lot of love has been put into the errors yet. I'll make sure this happens before the next release.
I believe a common mistake for people coming with some programming experience in other languages might be trying to call a function with positional arguments. So eg if I call call a function like so
sgn_x = new_x / abs[new_x]
I will get an error like:I think in this particular case the error should instead mention the parameter needs to be given a name and possible offer a fixit at least for single parameter built-ins where the intention should be easily guessable.
The text was updated successfully, but these errors were encountered: