From 1b4e37a43c2cb70d8158fd9b94fdac5485d23326 Mon Sep 17 00:00:00 2001
From: Russ Cox
There are five precedence levels for binary operators.
Multiplication operators bind strongest, followed by addition
-operators, comparison operators, *p++
is the same as (*p)++
&&
(logical and),
-and finally ||
(logical or):
+operators, comparison operators, &&
(logical AND),
+and finally ||
(logical OR):
@@ -2918,10 +2918,10 @@ to strings. All other arithmetic operators apply to integers only.
/ quotient integers, floats, complex values
% remainder integers
-& bitwise and integers
-| bitwise or integers
-^ bitwise xor integers
-&^ bit clear (and not) integers
+& bitwise AND integers
+| bitwise OR integers
+^ bitwise XOR integers
+&^ bit clear (AND NOT) integers
<< left shift integer << unsigned integer
>> right shift integer >> unsigned integer
@@ -2981,7 +2981,7 @@ int64 -9223372036854775808
If the divisor is zero, a run-time panic occurs.
If the dividend is positive and the divisor is a constant power of 2,
the division may be replaced by a right shift, and computing the remainder may
-be replaced by a bitwise "and" operation:
+be replaced by a bitwise AND operation:
@@ -3182,9 +3182,9 @@ The right operand is evaluated conditionally.-&& conditional and p && q is "if p then q else false" -|| conditional or p || q is "if p then true else q" -! not !p is "not p" +&& conditional AND p && q is "if p then q else false" +|| conditional OR p || q is "if p then true else q" +! NOT !p is "not p"-- 2.48.1