Re: Add spaceship assignment operator
| From: | Sara Golemon | Date: | Thu, 24 Mar 2016 17:59:11 +0000 |
| Subject: | Re: Add spaceship assignment operator | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-91910@lists.php.net to get a copy of this message | ||
On Thu, Mar 24, 2016 at 10:56 AM, Bob Weinand <bobwei9@hotmail.com> wrote:
>> $a ==== $b;
>> // same as
>> $a = ($a === $b);
>>
> I see a problem with that … It’d be impossible to make it consistent with is-equal
> comparison…
>
> === is already is-identical comparison. So, no symbol for the is-equal assignment operator
> left.
>
> As long as you don’t have any better suggestion, I’m sorry, but -1 on that.
>
Perhaps U+FEFF ZERO WIDTH NON-BREAKING SPACE would help disambiguate it?