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
{{ message }}
Repository navigation
§9.9: ranges are absent from the precedence table, so 0..3 |> map(f) parses the pipe inside the range #3001
The parser reads 0..(3 |> map(it * 2)). (0..3) |> map(it * 2) and a bound range work.
The §9.9 precedence table (and §30's copy) has no row for ../..=, so neither reading is ruled. Three-way: the spec is incomplete here. Proposal for the ruling: a range is a value like a sum, so .. sits above |> and ?? and below the comparisons: 0..n |> map(f) is (0..n) |> map(f), and a..b ?? c is (a..b) ?? c. Rust, for comparison, gives .. the lowest binary precedence. Go/Zig/Swift have no pipe. Spec words are Eric's; the parser change is one precedence level once ruled.
Activity
#3016, #3032, #2946, #2976, #2949, #3051, #3005, #3001, #3017, #2521:…
ehartford commentedon Nov 7, 2026
Fixed in #3056 (merged as afbdbb1).