Re: Add spaceship assignment operator
| From: | Mutlu Kocak | Date: | Thu, 24 Mar 2016 18:00:53 +0000 |
| Subject: | Re: Add spaceship assignment operator | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-91911@lists.php.net to get a copy of this message | ||
+1
On Thursday, 24 March 2016, Nikita Popov <nikita.ppv@gmail.com> wrote:
> Hi internals!
>
> For consistency, we should add a spaceship assignment operator:
>
> $a <=>= $b;
> // same as
> $a = ($a <=> $b);
>
> Additionally, we should add an is-identical assignment operator:
>
> $a ==== $b;
> // same as
> $a = ($a === $b);
>
> Thank you for taking this proposal under consideration.
>
> Regards,
> Nikita
>
--
Mutlu Koçak | Computer Scientist & Engineer
Mobile: +420775259871
Parizksa 5, Praha 1 Prague Czech Republic
Personal Website: http://www.mtkocak.com