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. :)
Ugh. I’m not sure I’ll use the ternary ever again now.
And how does that differentiate from the “booleanify” idiom !!$foo
?
Re:
autrijus on 2005-09-09T17:50:29
Booleanify is spelt?$foo
nowadays.Personaly I think ?? !! is nicely mnemonic, but old habits die hard...