Re: [VOTE][RFC] Null Coalesce Operator
| From: | Pascal MARTIN | Date: | Fri, 26 Sep 2014 20:52:39 +0000 |
| Subject: | Re: [VOTE][RFC] Null Coalesce Operator | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-77685@lists.php.net to get a copy of this message | ||
On 20/09/2014 01:34, Andrea Faulds wrote:
I’ve put the Null Coalesce Operator RFC to a vote: https://wiki.php.net/rfc/isset_ternary#vote It is a 2/3 majority vote and ends in a week’s time on 2014-09-27.Hi, We've discussed this RFC with other members of AFUP (French UG), and we've written quite a few mails about the ?? operator itself and a few other ideas. To summarize, we pretty much all agree that having to use isset() in order to avoid a notice is often cumbersome, and that a proposal that would allow us to write shorter code is nice. Using a new operator also feels better than changing the behavior of ?: and the ?? operator should not be hard to remember and understand. A new ??= operator might be useful, but not having it right away is OK: it'll still be possible to add it in the future, if enough people using ?? feel that ??= could help too. So, basically, +1 ;-) -- Pascal MARTIN http://blog.pascal-martin.fr/ @pascal_martin