Skip to content

Commit e127cf5

Browse files
authored
feat: add short circuiting bitwise operators (#298)
1 parent 82965e6 commit e127cf5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/appendix-02-operators-and-symbols.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Table B-1 contains the operators in Cairo, an example of how the operator would
1515
| `%` | `expr % expr` | Arithmetic remainder | `Rem` |
1616
| `%=` | `var %= expr` | Arithmetic remainder and assignment | `RemEq` |
1717
| `&` | `expr & expr` | Bitwise AND | `BitAnd` |
18+
| `&&` | `expr && expr` | Short-circuiting logical AND | |
1819
| `*` | `expr * expr` | Arithmetic multiplication | `Mul` |
1920
| `*=` | `var *= expr` | Arithmetic multiplication and assignment | `MulEq` |
2021
| `@` | `@var` | Snapshot | |
@@ -41,6 +42,7 @@ Table B-1 contains the operators in Cairo, an example of how the operator would
4142
| `>=` | `expr >= expr` | Greater than or equal to comparison | `PartialOrd` |
4243
| `^` | `expr ^ expr` | Bitwise exclusive OR | `BitXor` |
4344
| <code>&vert;</code> | <code>expr &vert; expr</code> | Bitwise OR | `BitOr` |
45+
| <code>&vert;&vert;</code> | <code>expr &vert;&vert; expr</code> | Short-circuiting logical OR | |
4446

4547
## Non Operator Symbols
4648

0 commit comments

Comments
 (0)