Re: what happened to that new isset() like language
| From: | Jochem Maas | Date: | Tue, 13 Jul 2004 03:26:40 +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-11147@lists.php.net to get a copy of this message | ||
Adam Maccabee Trachtenberg wrote:
On Thu, 8 Jul 2004, Marc Richards wrote:maybe call it the Collapsed Ternary (the first two arguments being collapse into 1 because they are 'identical'*). document it under the tenary docs, that way you can effectively introduce the std concept first before showing the the PHP handy extra for all those blasted checks. *sorry, my grasp of technical terminology is abysmal.Are you saying PHP will never introduce an operator that doesn't already exist in a large number of other languages?I certainly hope not. (Well, I guess === and !=== are exceptions to this statement.)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.
-adam