http://www.perlmonks.org?node_id=155841


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 'Best 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