Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72565 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41051 invoked from network); 13 Feb 2014 21:28:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Feb 2014 21:28:46 -0000 X-Host-Fingerprint: 72.91.185.17 pool-72-91-185-17.tampfl.fios.verizon.net Received: from [72.91.185.17] ([72.91.185.17:26329] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 05/7B-09050-D093DF25 for ; Thu, 13 Feb 2014 16:28:46 -0500 To: internals@lists.php.net,Pierre Joye Message-ID: <52FD390A.5030500@php.net> Date: Thu, 13 Feb 2014 16:28:42 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 CC: Christian Stoller , Simon J Welsh References: <4ED7146272E04A47B986ED49E771E347BBC71EE997@Ikarus.ameusgmbh.intern> <52FCE4FC.6010204@php.net> <52FD0932.8040900@php.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Posted-By: 72.91.185.17 Subject: Re: [PHP-DEV] [RFC] Combined Comparison Operator From: davey@php.net (Davey Shafik) On 2/13/14, 2:00 PM, Pierre Joye wrote: > On Feb 14, 2014 1:04 AM, "Davey Shafik" wrote: >> >> On 2/13/14, 12:14 PM, Pierre Joye wrote: >>> > >> So, this behavior can definitely be changed — preserving the current > behavior 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. > Right, that's what I mean by preserving the behavior of ==