Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Burned by precedence rules

by jplindstrom (Monsignor)
on Dec 23, 2008 at 16:20 UTC ( #732318=note: print w/replies, xml ) Need Help??


in reply to Burned by precedence rules

My rule of thumb is to always use && and friends in expressions, and "and" and friends for flow control.

That works well with the precedence rules, and it makes the intention explicit as to what's going on.

But I also have a rule of thumb to use parens where that makes things more clear.

/J

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://732318]
help
Chatterbox?
[Tux]: Héŀłő çřűèļ ŵøŗľđ, ıŧ'š ºvəř
[choroba]: ÿǎÿ!

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2017-09-25 21:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (290 votes). Check out past polls.

    Notices?