Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: a question on style

by lhoward (Vicar)
on Jun 12, 2000 at 18:41 UTC ( #17710=note: print w/replies, xml ) Need Help??


in reply to a question on style

IMHO, it is preferable to omit a useless else. I've never seen anyone recommend including useless elses unless the code was under development and you were goning to put something in the else at a later date.
if($x==$y){ print "good return\n"; }else{ # put in error handling code here }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://17710]
help
Chatterbox?
and a kettle whistles...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2017-12-11 23:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (318 votes). Check out past polls.

    Notices?