Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2018-07-20 20:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (441 votes). Check out past polls.

    Notices?