Adam Maccabee Trachtenberg wrote:
On Thu, 8 Jul 2004, Marc Richards wrote:
Compound Ternary operator:
$a = $b ?: $c;
You realize that ternary means it takes three arguments? It has nothing to do with question marks and colons. Your new "compound ternary" operator is really a "binary" operator.
Good point. As you can probably guess, I just made it up on a whim. Like I said, I am on the fence about "marketing" it as related to the ternary operator. But the fact still remains that if we did go with this syntax, we could and probably should find a name for it.
Marc
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php