Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79444 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48651 invoked from network); 5 Dec 2014 14:47:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2014 14:47:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.200 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.200 imap1-2.ox.privateemail.com Received: from [192.64.116.200] ([192.64.116.200:60633] helo=imap1-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0A/3A-61462-B95C1845 for ; Fri, 05 Dec 2014 09:47:55 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 4FA4FB00094; Fri, 5 Dec 2014 09:47:52 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap1.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap1.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LvBRF_YKBEfe; Fri, 5 Dec 2014 09:47:52 -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 B3B33B00092; Fri, 5 Dec 2014 09:47:51 -0500 (EST) Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: text/plain; charset=utf-8 X-Priority: 3 In-Reply-To: <07b6e60681651c07105d93f6af7f62f3bed9e4ed@mail.qip.ru> Date: Fri, 5 Dec 2014 14:47:49 +0000 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <71E539EE-AB67-46D2-826E-CE639D91BE32@ajf.me> References: <07b6e60681651c07105d93f6af7f62f3bed9e4ed@mail.qip.ru> To: =?utf-8?B?0JTQvNC40YLRgNC40Lk=?= X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] Comparison chain From: ajf@ajf.me (Andrea Faulds) > On 5 Dec 2014, at 14:36, =D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9 = wrote: >=20 > Hi! >=20 > I followed by https://wiki.php.net/rfc/howto and I would like to = propose a concept "comparison chain" to implementing to future PHP = versions. > It would be very usable if PHP can do that in python-style. >=20 > Thank for your attension! Are you saying to allow (1 < x < 2) etc.? That would be nice, although = it=E2=80=99s a backwards-compatibility break as currently (1 < x < 2) = would do something different, as would, say, ($x =3D=3D $y =3D=3D $z). -- Andrea Faulds http://ajf.me/