JuliaLang / JuliaLang/JuliaSyntax.jl
"ambiguous `.` syntax" errors could be more concrete
Open
parser
- Dominant language
- Julia
- Stars
- 293
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Description
Now:
```julia
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
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
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.