Skip to content

Commit

Permalink
Add logical ops to operator precedence table
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp authored and David Peter committed Dec 4, 2023
1 parent 2885af5 commit 6640dd2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions book/src/operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Numbat operators and other language constructs, ordered by precedence form *high
| subtraction | `x - y` |
| addition | `x + y` |
| comparisons | `x < y`, `x <= y`, `x ≤ y`, … `x == y`, `x != y` |
| logical negation | `!x` |
| logical 'and' | `x && y` |
| logical 'or' | `x || y` |
| unit conversion | `x -> y`, `x → y`, `x ➞ y`, `x to y` |
| conditionals | `if x then y else z` |
| reverse function call | `x // f` |
Expand Down

0 comments on commit 6640dd2

Please sign in to comment.