Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Mr. Ternary is greater than Mrs. If Else

by ash (Monk)
on May 22, 2007 at 13:55 UTC ( [id://616772]=note: print w/replies, xml ) Need Help??


in reply to Mr. Ternary is greater than Mrs. If Else

hi,,, while ago i was wondering why do some programmers rarely uses the ternary operator. wherein it is less typing indeed. i believe in the classic virtue of Perl which is laziness. well let me show you something first before i go to my delimma.

I don't think the laziness virtue of Perl extends to sacrificing readability by saving to write a few characters...
I like to be able to rest my eyes on the code, without getting dizzy. ;)

-- 
asksh <ask@0x61736b.net>

  • Comment on Re: Mr. Ternary is greater than Mrs. If Else

Replies are listed 'Best First'.
Re^2: Mr. Ternary is greater than Mrs. If Else
by blazar (Canon) on May 22, 2007 at 17:23 UTC
    I don't think the laziness virtue of Perl extends to sacrificing readability by saving to write a few characters...
    I like to be able to rest my eyes on the code, without getting dizzy. ;)

    I second that. In fact IMHO lazyness alone is not really a virtue. I know, because I'm so lazy!

Log In?
Username:
Password:

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

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

    No recent polls found