5.2 Precedence and associativity
| Level | Operators | Associativity |
|---|---|---|
| 15 | f() a[i] a.b a?.b e? e! | left (postfix) |
| 14 | -e !e ~e &e &var e move e await e | prefix |
| 13 | as is | left |
| 12 | ** | right |
| 11 | * / % *% *| | left |
| 10 | + - +% -% +| -| | left |
| 9 | << >> | left |
| 8 | & | left |
| 7 | ^ | left |
| 6 | | | left |
| 5 | .. ..= | none |
| 4 | == != < <= > >= <=> in | none (a < b < c is an error) |
| 3 | && | left |
| 2 | || | left |
| 1 | ?? | right |
| 0 | |> | left |
| −1 | -> ?-> ~> !> and the suffixes within, retry | left |
| −2 | => (lambda) | right |
Related diagnostics
See also
Source: docs/spec/oxl-standard.en.md