Re: Add spaceship assignment operator
| From: | Stanislav Malyshev | Date: | Thu, 24 Mar 2016 17:55:54 +0000 |
| Subject: | Re: Add spaceship assignment operator | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-91908@lists.php.net to get a copy of this message | ||
Hi!
>
> For consistency, we should add a spaceship assignment operator:
>
> $a <=>= $b;
Or maybe we shouldn't? Not only it is quite ugly, I am struggling to
imagine a use case in which one would need such a construct, and I would
recommend rewriting any code that uses such construct.
> Additionally, we should add an is-identical assignment operator:
>
> $a ==== $b;
This looks like it is a week early. Maybe that was the intent?
--
Stas Malyshev
smalyshev@gmail.com