Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: (Ovid) Re: 'or' vs '', '&&' vs 'and'

by admiralh (Sexton)
on Apr 01, 2002 at 20:03 UTC ( #155841=note: print w/ replies, xml ) Need Help??


in reply to (Ovid) Re: 'or' vs '', '&&' vs 'and'
in thread 'or' vs '', '&&' vs 'and'

Just remember that sometimes "excessive" parentheses can enhance the readability of your code. Especially when you have to "enhance" your own code 6 months (or more!) after you originally wrote it :-)

That said, for these situations I always use 'and' and 'or'.


Comment on Re: (Ovid) Re: 'or' vs '', '&&' vs 'and'
Replies are listed 'Oldest First'.
Re: Re: (Ovid) Re: 'or' vs '', '&&' vs 'and'
by Juerd (Abbot) on Apr 01, 2002 at 20:46 UTC

    Just remember that sometimes "excessive" parentheses can enhance the readability of your code.

    Parentheses that enhance readability are never excessive.

    U28geW91IGNhbiBhbGwgcm90MTMgY
    W5kIHBhY2soKS4gQnV0IGRvIHlvdS
    ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
    geW91IHNlZSBpdD8gIC0tIEp1ZXJk
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://155841]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (14)
As of 2015-07-07 16:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (92 votes), past polls