O
This one is an interesting case, since there are strong arguments on
both sides.

I enabled the C++ warning about the precedence of&&  and || (it's been
in C for many years).  It found real bugs in real code, bugs that had
existed for years.

I think for ordinary programmers, the fact that AND binds more tightly
than OR is not well known. After all it makes no intrinsic sense (the
connection via boolean logic with * and + is obscure to say the least).

I am in favor of enabling this warning.

P.S. I like Ada's viewpoint here of requiring parenthesization in
this case.

Ian

Reply via email to