Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80798 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27152 invoked from network); 19 Jan 2015 10:41:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2015 10:41:04 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.199 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.199 imap11-2.ox.privateemail.com Received: from [192.64.116.199] ([192.64.116.199:50550] helo=imap11-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9A/1C-64889-04FDCB45 for ; Mon, 19 Jan 2015 05:41:04 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id A0F748800E5; Mon, 19 Jan 2015 05:41:01 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap11.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap11.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id F_Y8L8iXlmAO; Mon, 19 Jan 2015 05:41:01 -0500 (EST) Received: from oa-res-26-240.wireless.abdn.ac.uk (oa-res-26-240.wireless.abdn.ac.uk [137.50.26.240]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id F105A8800A2; Mon, 19 Jan 2015 05:41:00 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: <54BCDE6A.1080806@seld.be> Date: Mon, 19 Jan 2015 10:40:57 +0000 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <52DD05A8-082A-4CDB-BA30-F6BE86884704@ajf.me> References: <53F8A1FF-C809-4DDF-9C6F-6916C3E4F044@ajf.me> <54BCDE6A.1080806@seld.be> To: Jordi Boggiano X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [RFC] Combined Comparison (Spaceship) Operator From: ajf@ajf.me (Andrea Faulds) Hi Jordi, > On 19 Jan 2015, at 10:37, Jordi Boggiano wrote: >=20 > On 19/01/2015 08:28, Andrea Faulds wrote: >> Good morning, >>=20 >> This is a reboot of Davey Shafik=E2=80=99s RFC (with permission). = After recent discussions about sort functions, I was inspired to bring = this back up, as I think it would be a useful feature. >>=20 >> The RFC is here: = https://wiki.php.net/rfc/combined-comparison-operator >=20 > I am all for it, but just so we don't end up with yet another = T_PAAMAYIM_NEKUDOTAYIM can we please not call this T_SPACESHIP? It = sounds fun now but future generations will hate us. >=20 > Rather use T_COMBINED_COMPARISON or such? It=E2=80=99d be possible. On the other hand, this isn=E2=80=99t just an = in-joke: the =E2=80=9Cspaceship operator=E2=80=9D is a common name for = it in other languages, and if you google it you will actually find = information about the operator. Plus, it=E2=80=99s fun. -- Andrea Faulds http://ajf.me/