Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: A new idiom -or- I Hate Unless

by erikharrison (Deacon)
on Aug 22, 2004 at 21:32 UTC ( #384974=note: print w/ replies, xml ) Need Help??


in reply to Re: A new idiom -or- I Hate Unless
in thread A new idiom -or- I Hate Unless

My problem is not so much unless as the problem it tries to fix - namely making doing something when a condition is false readable and clear. It does that, to an extent. But in 90% of the cases the code is for handling an error.

Marking cut and paste code as such is a great idea. The code needs some documentation anyway. It's all uncommented.

update: fixed typo
Cheers,
Erik

Light a man a fire, he's warm for a day. Catch a man on fire, and he's warm for the rest of his life. - Terry Pratchet


Comment on Re^2: A new idiom -or- I Hate Unless

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2014-12-27 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls