JuliaLang / JuliaLang/JuliaSyntax.jl

Bad error message for ? : and tuple

Open
#434 0 comments 0 reactions 0 assignees View on GitHub
error messages
Dominant language
Julia
Stars
293
Forks
50
PR merge metrics
No merged PRs in 30d

Description

```julia
julia> true ? 1, 2 : 3
ERROR: ParseError:
# Error @ REPL[1]:1:9
true ? 1, 2 : 3
# └ ── space required before `:` in `?` expression
Stacktrace:
[1] top-level scope
@ REPL:1
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Julia REPL input `true ? 1, 2 : 3` and inspect the resulting ParseError and its highlighted location. Determine what wording would accurately explain this tuple-and-ternary syntax case; done means the diagnostic is corrected and the same input is covered by an appropriate parser test.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.