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
In Julia 1.10-rc1:
julia> f(x, y, z) = x+y+z f (generic function with 1 method) julia> f(3,4 5) ERROR: ParseError: # Error @ REPL[2]:1:7 f(3,4 5) # ╙ ── Expected `)` Stacktrace: [1] top-level scope @ none:1
Contrast this with Python 3.10 which instead:
>>> def f(x,y,z): return x+y+z ... >>> f(3,4 5) File "<stdin>", line 1 f(3,4 5) ^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma?
The error message of Python seems better, can we change the Julia message to something similar? Probably multiple dispatch makes this trickier though.
Indeed it was better in Julia 1.9
julia> f(3,4 5) ERROR: syntax: missing comma or ) in argument list Stacktrace: [1] top-level scope @ none:1
The text was updated successfully, but these errors were encountered:
Actually this was fixed in JuliaSyntax 0.4.8 and was a duplicate (JuliaLang/JuliaSyntax.jl#397) so I think this can be closed.
Base version is still at 0.4.7 though so the issue remains
Sorry, something went wrong.
Actually there is #53119 trying to bump the version
No branches or pull requests
In Julia 1.10-rc1:
Contrast this with Python 3.10 which instead:
The error message of Python seems better, can we change the Julia message to something similar? Probably multiple dispatch makes this trickier though.
Indeed it was better in Julia 1.9
The text was updated successfully, but these errors were encountered: