Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Why I Hate Nested If-Else blocks

by Stegalex (Chaplain)
on Jan 04, 2002 at 19:22 UTC ( #136281=note: print w/ replies, xml ) Need Help??


in reply to Why I Hate Nested If-Else blocks

Why rant about nested if-elses? There is nothing intrinsically wrong with them. When in doubt, I always hit shift-5 in vi to check that my {'s match my }'s. In fact, I am going out on a limb to say that I LIKE nested if-elses. I really do. Here, choke on this:

if ($a) { if ($b) { } else { } } else {if ($c) { } else { } }

I like chicken.


Comment on Re: Why I Hate Nested If-Else blocks
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2015-07-05 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls