Re: what happened to that new isset() like language
| From: | Marc Richards | Date: | Thu, 08 Jul 2004 23:53:16 +0000 |
| Subject: | Re: what happened to that new isset() like language | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-11008@lists.php.net to get a copy of this message | ||
Adam Maccabee Trachtenberg wrote:
On Thu, 8 Jul 2004, Marc Richards wrote: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. MarcCompound 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.