golang 算符优先级
Contents
golang 算符优先级
Binary operators (MACAO)
| Prio | Operators | Note |
|---|---|---|
| 1 | * / % « » & &^ | Multiplicative |
| 2 | + - ^ | Additive |
| 3 | == != < <= > >= | Comparison |
| 4 | && | And |
| 5 | | | Or |
Author -
LastMod 2019-03-21
Binary operators (MACAO)
| Prio | Operators | Note |
|---|---|---|
| 1 | * / % « » & &^ | Multiplicative |
| 2 | + - ^ | Additive |
| 3 | == != < <= > >= | Comparison |
| 4 | && | And |
| 5 | | | Or |
Author -
LastMod 2019-03-21