Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102745 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96966 invoked from network); 11 Jul 2018 08:00:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jul 2018 08:00:09 -0000 Authentication-Results: pb1.pair.com header.from=come@opensides.be; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=come@opensides.be; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain opensides.be designates 195.154.20.141 as permitted sender) X-PHP-List-Original-Sender: come@opensides.be X-Host-Fingerprint: 195.154.20.141 lists.fusiondirectory.org Received: from [195.154.20.141] ([195.154.20.141:40222] helo=smtp.opensides.be) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 65/52-15421-509B54B5 for ; Wed, 11 Jul 2018 04:00:06 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp.opensides.be (Postfix) with ESMTP id 335ADBC100 for ; Wed, 11 Jul 2018 10:00:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at opensides.be Received: from smtp.opensides.be ([127.0.0.1]) by localhost (smtp.opensides.be [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CitB8JaTmo3Q for ; Wed, 11 Jul 2018 09:59:59 +0200 (CEST) Received: from mcmic-probook.localnet (63.120.199.77.rev.sfr.net [77.199.120.63]) by smtp.opensides.be (Postfix) with ESMTPSA id 7DC12BC0FF for ; Wed, 11 Jul 2018 09:59:59 +0200 (CEST) To: internals@lists.php.net Date: Wed, 11 Jul 2018 09:59:46 +0200 Message-ID: <4711726.ngIB869vU3@mcmic-probook> Organization: OpenSides User-Agent: KMail/5.2.3 (Linux/4.9.0-6-amd64; KDE/5.28.0; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart6091071.tKtdaVTIfg"; micalg="pgp-sha256"; protocol="application/pgp-signature" Subject: Re: [PHP-DEV] [RFC] [VOTE] User-defined object comparison From: come@opensides.be (=?ISO-8859-1?Q?C=F4me?= Chilliet) --nextPart6091071.tKtdaVTIfg Content-Type: multipart/alternative; boundary="nextPart1760561.XrGWj1mnhM" Content-Transfer-Encoding: 7Bit This is a multi-part message in MIME format. --nextPart1760561.XrGWj1mnhM Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" > $x->__equals($y) && $y->__equals($z) requires that $x->__compareTo($z) be= *TRUE*. Typo here, it should be __equals at the end not __compareTo. > In fact, returning 0 in __compareTo for undefined natural ordering leads = to all kinds of strange behaviour If this is the case, I do not understand why you split comparison and equal= ity, as I understood it at first the point was exactly to be able to have o= rdering equality without having value equality. If this leads to strangenes= s, why allow it? C=F4me --nextPart1760561.XrGWj1mnhM Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="iso-8859-1"

> $x->__equals($y) && $y->__equa= ls($z) requires that $x->__c= ompareTo($z) be TRUE.

&nb= sp;

Typo here, = it should be __equals at the end not _= _compareTo.

&nb= sp;

> In fac= t, returning 0 in __compareTo for undefined natural ordering= leads to all kinds of strange behaviour

&nb= sp;

If this is = the case, I do not understand why you split comparison and equality, as I u= nderstood it at first the point was exactly to be able to have ordering equ= ality without having value equality. If this leads to strangeness, why allo= w it?

&nb= sp;

C=F4me

<= /body> --nextPart1760561.XrGWj1mnhM-- --nextPart6091071.tKtdaVTIfg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEnJSNrcx2T3JL/3cLqGTYw87LDgAFAltFuPIACgkQqGTYw87L DgBeYBAA5k23pcIcPIENEoyYW1jwH6A5ipIy+6SS0QBW8OKxdxHW6aaAHSc/JiTJ AMzOVkNw8Z7MwgZAZ9U7aiPSVYhpqxQXjoPRNtUk7DCyjCFX21xOkkvA3KwWLf7+ LsAnIUy4iOh96SdUpvpY1ObYIaEPKtlKSbHz+sSuD4mJugvdpzMHVDW/carx8fmo yI64EZJjKJqd4vkbHpx4V2Evtit09LQm6niDI+H8f2YM/Iig2u75DxVZ7Cx1J5MH 8ijK7v5kdchIs/PBpFqwlxEWTLHib9I4JxojGT8KWcyqcEH4+ZelbrXf5AHNAYe8 NNP4E9uAdJP1LMpI5bq2HaNWzfGFRhX58AeOLbDi1fzdsEcG3dUUvagg4wHTnDWI Q8htryJn4rJ7c25mCG5BMn6bSf6GYFVuBMmhO0wf2CwcVwcZsnJQjVVXzmv4oH/R My2UkKHg5HgDScE+zItL1r5b9u0weF5UliMuWGatZ1Nx4VuMzITixhIcVC1bkxco y0fcP0WZeHjDMB741xzuGHd4+jt6m058sTcU8qxP6ieo/klnPuLvRhwTl+56lIWy 0JZox+amASnJrhkamePTOKga/jY9bUS3K3Vua+D3ynLWrFr62Noq10eGfOu4TMVS +DRwmb1aa7h7NmPxBcS+CLXrFon0OZQ5xHJTxfFQ0AmAU43Abx8= =WWB+ -----END PGP SIGNATURE----- --nextPart6091071.tKtdaVTIfg--