Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Thoughts on using and, or, and not over && || !?

by Anonymous Monk
on Jul 11, 2016 at 22:24 UTC ( [id://1167584]=note: print w/replies, xml ) Need Help??


in reply to Thoughts on using and, or, and not over && || !?

I do it as often as I can. I think it makes code "more readable".

(I also try to use as few parentheses as possible for the same reason.)

  • Comment on Re: Thoughts on using and, or, and not over && || !?

Replies are listed 'Best First'.
Re^2: Thoughts on using and, or, and not over && || !?
by BillKSmith (Monsignor) on Jul 12, 2016 at 02:24 UTC
    "More readable" is always a judgement call. Redundant parenthesis are a big improvement to the reader that is spared from consulting the precedence tables.
    Bill

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-19 04:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found