Supports to ?:= assignment operator
| From: | David Rodrigues | Date: | Wed, 11 Nov 2020 16:18:02 +0000 |
| Subject: | Supports to ?:= assignment operator | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-112222@lists.php.net to get a copy of this message | ||
Hello!
PHP currently supports ??= assignment, as shortly to $a = $a ?? null, but
it does not supports ?:= as shortly to $a = $a ?: null.
There are some reason to that?
- https://wiki.php.net/rfc/null_coalesce_equal_operator
- https://wiki.php.net/rfc/short_ternary_equal_operator
Thanks!
Atenciosamente,
David Rodrigues