in reply to Re^2: Pugs Tic Tac
in thread Pugs Tic Tac

You use it often enough that two extra characters makes you say "yuck"?

I do.

I mean, it works exactly the same. It looks nearly exactly the same. It just has two of each character instead of one.

It's an increase of 100%, you know? :-)

But please note: I'm not saying that I'm against the change or anything. With time, I'll probably enjoy it. I just wanted to make it perfectly clear that some people use the ternary operator a lot.

And I'm proudly one of them :-)

print "$users user", ( $users == 1 ? '' : 's'), " currently use the ternary operator.\n";

Replies are listed 'Best First'.
Re^4: Pugs Tic Tac
by bpphillips (Friar) on Apr 25, 2005 at 19:42 UTC
    to be completely gramatically correct, you've got to modify the verb as well ;-)
    print "$users user", ( $users == 1 ? '' : 's'), " currently use",( $users == 1 ? 's' : ''), " the ternary operator.\n";
      Eh.

      And I changed my sentence, because the first version was "There are currently $users using...", and that would have me changing the "are" to "is" too :-)

      Oh well :-)

Re^4: Pugs Tic Tac
by revdiablo (Prior) on Apr 25, 2005 at 20:03 UTC

    Ok, I knew I should have avoided the appeal to frequent use. That always lands me in hot water, because for every feature there is bound to be at least one person who uses it all the time. Of course, the trinary operator is probably used frequently by quite a bit more than one person, but you know. :-)