The stupid question is the question not asked | |
PerlMonks |
Re: Burned by precedence rulesby toolic (Bishop) |
on Dec 23, 2008 at 13:44 UTC ( [id://732288]=note: print w/replies, xml ) | Need Help?? |
I code in enough languages that it is impractical for me to remember operator precedence in a single language, let alone 5 languages. So, I got into the habit of always using parentheses around expressions. I find that using parentheses more clearly groups the code and
makes it easier to read, with the byproduct of avoiding precedence issues.
I also prefer using Perl's named operators (and, or, etc.) over it's symbolic ones because I think it makes the code easier to read and understand.
In Section
Meditations
|
|