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

What has the single ''?'' been usurped for?? I can''t remember.. Or is the problem that ""everyone wants the colon"",, so a doubled colon was needed,, leading to a doubled question mark??

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart

Replies are listed 'Best First'.
Re^4: Pugs Tic Tac
by revdiablo (Prior) on Apr 25, 2005 at 18:23 UTC

    I think it was the colon, yeah. I could be wrong -- my memory on this is a bit hazy -- but I seem to remember the trinary operator is what prevented the single colon from being used before. Doubling the colon requires doubling the question mark to look reasonably balanced.

    And funnily enough, I didn't realize you had doubled all your punctuation until after I had read your reply a second or third time. I almost spit soda all over my keyboard because of that. :-)

    Update: from Exegesis 3:

    The ?? and :: are the new way we write the old ?: ternary operator in Perl 6. Larry had to change the spelling because he needed the single colon for marking adverbs. But it's a change for the better anyway --it was rather odd that all the other short-circuiting logical operators (&& and || and //) used doubled symbols, but the conditional operator didn't. Well, now it does. The doubling also helps it stand out better in code, in part because it forces you to put space around the :: so that it's not confused with a package name separator.
      The doubling also helps it stand out better in code, in part because it forces you to put space around the :: so that it's not confused with a package name separator.
      Aha! Another sneaky instance of required whitespace! (What will this do to golf scores?)

      -QM
      --
      Quantum Mechanics: The dreams stuff is made of

      Ok, thanks for reminding me. I knew the answer would be in some Exegesis somewhere...

      Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
      How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart