Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

autrijus (1505)

  (email not shown publicly)

Journal of autrijus (1505)

Thursday September 08, 2005
03:37 PM

Day 214 (r6859): Ternary "?? ::" becomes "?? !!".

[ #26647 ]
Three days ago, Thomas Sandlass argued on p6l that the :: part in the ternary $cond ?? $true :: $false should be changed to something else, so :: can unambiguously refer to compile-time bindings.

After much discussion, ?? !! emerged as the least insane alternative, and larry approved that change. bsmith then went ahead, committed the change in Pugs, and fixed all tests and examples to reflect the new syntax; iblech did the same for PIL2JS.

...lots of exciting developments today as well, but I'll have to wait till tomorrow to cover them, when my brain finally got some rest. Sorry. :)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Ugh. I’m not sure I’ll use the ternary ever again now. :-(

    And how does that differentiate from the “booleanify” idiom !!$foo?

    • Booleanify is spelt ?$foo nowadays.

      Personaly I think ?? !! is nicely mnemonic, but old habits die hard...