Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88648 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68788 invoked from network); 2 Oct 2015 19:33:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Oct 2015 19:33:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=bjorn.x.larsson@telia.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=bjorn.x.larsson@telia.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain telia.com from 81.236.60.155 cause and error) X-PHP-List-Original-Sender: bjorn.x.larsson@telia.com X-Host-Fingerprint: 81.236.60.155 v-smtpout2.han.skanova.net Received: from [81.236.60.155] ([81.236.60.155:42891] helo=v-smtpout2.han.skanova.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/CC-23989-EEBDE065 for ; Fri, 02 Oct 2015 15:33:03 -0400 Received: from [192.168.7.4] ([195.198.188.252]) by cmsmtp with SMTP id i64hZofNsb8Rri64hZ4ntI; Fri, 02 Oct 2015 21:33:00 +0200 To: Sara Golemon References: <5609B140.1050102@telia.com> Cc: =?UTF-8?Q?Pavel_Kou=c5=99il?= , PHP internals Message-ID: <560EDBEC.1010502@telia.com> Date: Fri, 2 Oct 2015 21:33:00 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------000409070802000006090504" X-CMAE-Envelope: MS4wfBKcMRJOJc4LxkfxqINULGnn8vp71fDjyHi0wYQ2k+vHNdVLRSclWA9jmA5oJTxXgq1p9NltUGeqbKkY4sOIGWL6eqXN4/qGJMlWJXzD4PSVLsfXxaPtjXuq6LGvhx5lp67XEQEdtFkEyFtIE179KwYzkUM0VcPFHT8RTyb7WQ/PI6wWLVz9MY5Fe4XFpgjSVafE8QG5rUuYwoYuXrZCS573AUysq/M06tAXLmZJUSMMDtdW2ekkLGcUPaxTyT/SVg== Subject: Re: [PHP-DEV] [RFC] [VOTE] Short Closures From: bjorn.x.larsson@telia.com (=?UTF-8?Q?Bj=c3=b6rn_Larsson?=) --------------000409070802000006090504 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Den 2015-10-02 kl. 18:50, skrev Sara Golemon: > On Mon, Sep 28, 2015 at 2:29 PM, Björn Larsson > wrote: >> ... or if someday in the future comparison operator >> without type juggling is needed. >> > You just blew my mind. Trying to imagine where strict > greater-than-or-equal would be used, and more to the point: What you'd > make strict grater than look like. `>>>`? Nope, you'd have heredoc > conflict on strict-less than `<<<`. > > -Sara > Glad I managed to do that :) What I had in mind was strings compared with int, like: "2 horses" > 1. And yes, syntax is a bit blocked... Leaves the options, >==, <== or >>=, <<=. But I don't like the last ones. One might also consider extending the spaceship operator to <==> for strict comparison. I don't have a strong opinion on relevant use cases for this, so I leave it at that. /Cheers //Björn/ PS Think I blew my own mind a little too ;) --------------000409070802000006090504--