Skip to content
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

"ambiguous . syntax" errors could be more concrete #507

Open
aplavin opened this issue Sep 22, 2024 · 0 comments
Open

"ambiguous . syntax" errors could be more concrete #507

aplavin opened this issue Sep 22, 2024 · 0 comments
Labels

Comments

@aplavin
Copy link

aplavin commented Sep 22, 2024

Now:

julia> 10.^(1:5)
ERROR: ParseError:
# Error @ REPL[1]:1:1
10.^(1:5)
└─┘ ── ambiguous `.` syntax; add whitespace to clarify (eg `1.+2` might be `1.0+2` or `1 .+ 2`)

Would be nice and immediately understandable to show the actual code a user typed – instead of some random example:

julia> 10.^(1:5)
ERROR: ParseError:
# Error @ REPL[1]:1:1
10.^(1:5)
└─┘ ── ambiguous `.` syntax, `10.^(1:5)` might be `10. ^ (1:5)` or `10 .^ (1:5)`; add whitespace to clarify
@nsajko nsajko added the parser label Sep 22, 2024
@fredrikekre fredrikekre transferred this issue from JuliaLang/julia Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants