precedence lossage
precedence lossage
x & 1 == 0
is parsed as
x & (1 == 0)
which is always zero (false).
Some lazy programmers ignore precedence and parenthesiseeverything. Lisp fans enjoy pointing out that this can'thappen in *their* favourite language, which eschews precedenceentirely, requiring one to use explicit parentheseseverywhere.