For the examples you gave, I like to use 'and' and 'or' instead of '&&' and '||', and I use parentheses.
The parens allow me to forget which set has higher precedence.
And I like the 'and' and 'or' because they are more natural.
In reply to Re: 'or' vs '', '&&' vs 'and'
by mrbbking
in thread 'or' vs '', '&&' vs 'and'
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |