But his reason was that in case with if ((a = b) && (c = d)) parenthesis managed to hide a compiler warning about equal statement being used instead of a comparison sign in the if.
On Feb 16, 2009, at 9:42 PM, Ged wrote:
IMO parenthesis should always be used, it helps to clarify what the developer who wrote the code really wanted.
I also find code which makes use of parenthesis much easier to read quickly, although that's probably just a personal preference.
Ged.