Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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'
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 wandering the Monastery: (4)
As of 2014-08-30 13:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls