Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99570 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60309 invoked from network); 20 Jun 2017 07:54:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2017 07:54:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=markus@fischer.name; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=markus@fischer.name; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fischer.name from 84.116.36.14 cause and error) X-PHP-List-Original-Sender: markus@fischer.name X-Host-Fingerprint: 84.116.36.14 vie01a-dmta-pe06-1.mx.upcmail.net Received: from [84.116.36.14] ([84.116.36.14:55309] helo=vie01a-dmta-pe05-1.mx.upcmail.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EC/80-13828-3A4D8495 for ; Tue, 20 Jun 2017 03:54:11 -0400 Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe06.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1dNDzE-0001fg-1u for internals@lists.php.net; Tue, 20 Jun 2017 09:54:08 +0200 Received: from mail02.home ([213.47.8.56]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id avtU1v01T1CY7x901vtVnn; Tue, 20 Jun 2017 09:53:30 +0200 X-SourceIP: 213.47.8.56 Received: from mail02.home ([192.168.1.14] helo=[IPv6:::1]) by mail02.home with esmtp (Exim 4.72) (envelope-from ) id 1dNDyZ-0004Ag-UH for internals@lists.php.net; Tue, 20 Jun 2017 09:53:28 +0200 To: internals@lists.php.net References: <5fe1eefe-1c4f-4c31-c975-ab6c768c977c@telia.com> <3C763609-54FC-480B-AE95-94A1873226E0@me.com> <9A3447BF-F982-4C5A-B55B-466036AF2E53@me.com> <2d89daaa-056f-3dcb-a5f2-b790affe203a@garfieldtech.com> Message-ID: <64e7de96-6a46-1c2c-5492-fab5a0f22b32@fischer.name> Date: Tue, 20 Jun 2017 09:53:33 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam_report: Spam detection software, running on the system "scanner01.home", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello Rasmus, On 19.06.17 22:22, Rasmus Schultz wrote: > If I have to factor back and forth between new and old syntax every time a > closure changes from one to multiple or back to one statement, then, > frankly, what's the point? > > I think I would just keep using the old syntax, then - for consistency, and > to save myself the frustration of factoring back and forth. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Subject: Re: [PHP-DEV] [RFC]Discuss] Syntax for Arrow Functions From: markus@fischer.name (Markus Fischer) Hello Rasmus, On 19.06.17 22:22, Rasmus Schultz wrote: > If I have to factor back and forth between new and old syntax every time a > closure changes from one to multiple or back to one statement, then, > frankly, what's the point? > > I think I would just keep using the old syntax, then - for consistency, and > to save myself the frustration of factoring back and forth. I'm writing closures every day and it's so rare to have this changes from single/multiple I don't even remember. I think in practice this is a non-issue except for very rare special cases and, don't forget: it's optional, you don't have to. > In my opinion, if this is worth doing, it's worth doing it right. No counter-argument here :) I just think your example is an exaggeration to what happens in practice. - Markus