I'd say it's easier to teach people to use parentheses everywhere than to teach them the operator precedence tableI feel that is going too far. Since = is an operator, that advice requires you to use parens here:
Do you do that?my $x = ( $y + 42 );
Whether parens "clutter" or "clarify" is a matter of taste. I prefer the middle ground here to the extreme positions of "always use parens" or "memorize the precedence table and never use parens".
In reply to Re^3: Thoughts on using and, or, and not over && || !?
by eyepopslikeamosquito
in thread Thoughts on using and, or, and not over && || !?
by Argel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |