Req #75233 [Opn->Csd]: want a new opperator ?=
| From: | cmb@php.net | Date: | Wed, 20 Sep 2017 17:32:24 +0000 |
| Subject: | Req #75233 [Opn->Csd]: want a new opperator ?= | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-211276@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75233&edit=1
ID: 75233
Updated by: cmb@php.net
Reported by: uukoo at 163 dot com
Summary: want a new opperator ?=
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: *General Issues
PHP Version: 7.2.0RC2
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
A respective RFC for implementing an null coalesce operator (??=)[1] has already
been accepted, but nobody found the time to implement that feature, yet. A pull
request would be welcome!
[1] <https://wiki.php.net/rfc/null_coalesce_equal_operator>
Previous Comments:
------------------------------------------------------------------------
[2017-09-20 13:32:48] uukoo at 163 dot com
Description:
------------
what we have
$a?:$b ==== $a?$a:$b
$a??$b ==== isset($a)?$a:$b
what we want
$a?=$b ==== isset($a)?$a:($a=$b)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75233&edit=1