Re:Tim Bray doesn't know operator precedence rules
by zwieback on Wednesday June 30, 2010 @11:14AM
(#1475065)
It's readability vs. clutter - I think most programmers would allow multiplication over addition without parens. It's logical to allow && over || since that's basically the same thing as * over +.
The one that always gets me is x == y&1, which is evaluated as (x==y) & 1.
The one that always gets me is x == y&1, which is evaluated as (x==y) & 1.