Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by ash (Monk)
on May 22, 2007 at 13:55 UTC ( #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 drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2023-12-02 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (18 votes). Check out past polls.

    Notices?