Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Conditional style (if, &&) query

by hopes (Friar)
on Oct 17, 2001 at 02:58 UTC ( [id://119281]=note: print w/replies, xml ) Need Help??


in reply to Conditional style (if, &&) query

I think as dragonchild
Option B is "more readable" for me, but there are situations in which I use option C.
I use option C if expr is long or complicated.
I use option C also if there is one possibility to need one else now or later.
I think I am a little fussy, cause I don't like
unless (a()){ b(); }
I prefer
b() unless a();
because I find that really more readable.
Err, I think
not use 'option_A' unless golf() or advanced_programmer();
:-)
Hopes

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-24 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found