Re: [RFC] Combined Comparison (Spaceship) Operator
| From: | Andrea Faulds | Date: | Mon, 19 Jan 2015 12:30:14 +0000 |
| Subject: | Re: [RFC] Combined Comparison (Spaceship) Operator | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80810@lists.php.net to get a copy of this message | ||
Hi Alain,
> On 19 Jan 2015, at 11:06, Alain Williams <addw@phcomp.co.uk> wrote:
>
> On Mon, Jan 19, 2015 at 08:28:17AM +0000, Andrea Faulds wrote:
>
>> The RFC is here:
>> https://wiki.php.net/rfc/combined-comparison-operator
>
> I like it.
>
> The RFC does not say what the precedence is to be. Could I suggest that it be
> the same as ''== != === !== <>'' - which keeps it consistent with
> Perl.
It has the same precedence as the other comparison operators, it’s non-associative.
Thanks.
--
Andrea Faulds
http://ajf.me/