Re: [RFC] Combined Comparison Operator
| From: | Davey Shafik | Date: | Thu, 13 Feb 2014 21:28:42 +0000 |
| Subject: | Re: [RFC] Combined Comparison Operator | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-72565@lists.php.net to get a copy of this message | ||
On 2/13/14, 2:00 PM, Pierre Joye wrote:
On Feb 14, 2014 1:04 AM, "Davey Shafik" <davey@php.net> wrote:Right, that's what I mean by preserving the behavior of ==On 2/13/14, 12:14 PM, Pierre Joye wrote:So, this behavior can definitely be changed — preserving the currentbehavior of == for the 0 value, and then we can go two different ways for 1/-1: Btw, I forgot to mention that for equality comparisons, we have the instance hash function, which was created exactly for that.