Re: what happened to that new isset() like language
| From: | Arpad Ray | Date: | Sat, 29 Oct 2005 23:02:23 +0000 |
| Subject: | Re: what happened to that new isset() like language | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-19834@lists.php.net to get a copy of this message | ||
For the assign-if-not-set operator, I like the idea of:
$foo ?= 'bar';
? implies a condition, and the = immediately following will raise a parse
error in older versions.
There's admittedly potential for confusion with the ternary operator, but
since that's most commonly used for conditional assignment I think the
association isn't all negative.
Arpad