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>
In reply to Re: Mr. Ternary is greater than Mrs. If Else
by ash
in thread Mr. Ternary is greater than Mrs. If Else
by PerlPhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |