Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88577 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6616 invoked from network); 30 Sep 2015 11:11:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Sep 2015 11:11:32 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.181 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.181 mail-wi0-f181.google.com Received: from [209.85.212.181] ([209.85.212.181:37194] helo=mail-wi0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/41-24329-463CB065 for ; Wed, 30 Sep 2015 07:11:32 -0400 Received: by wicfx3 with SMTP id fx3so56235394wic.0 for ; Wed, 30 Sep 2015 04:11:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=RbmNJ3muiO9OVMDYA3r9QUQDApQwhB2926U4hfs2tBY=; b=AAlDsol1c0EqAm9YnnUu15EeEis3qErRolRiwHfxWg4z9jziFeQTYgNqUv0xa1a1Ip cbZE0KvgzlBCSfH1f8xv1qkW6bzv5/wOg+OYDy+A3vdkiBnQF4j6kSHe2W2InLBCj0lh jrmbZSDX45FCLmnaayRnuA1HDRF4G5Nno6rl/HIaj7rjRfv7ZdB35BA86nwRqkztTNFl G9R1bLLF6lg9m4Wd3Msc9tV7I+Q/1xoU2TkzMUt+xA/pGrkBSrmu1cSK5PJYnjZd3sTG rCPzj/a62qxSyyEIUOi5N9ELYkPQRw6S2Yb6+GET6xRpZwpFPCSj9lq2LFLLrXm8Uv8a oqyw== X-Received: by 10.194.11.37 with SMTP id n5mr3930625wjb.71.1443611489017; Wed, 30 Sep 2015 04:11:29 -0700 (PDT) Received: from [192.168.0.161] ([62.189.198.114]) by smtp.googlemail.com with ESMTPSA id gh9sm36467wjb.27.2015.09.30.04.11.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Sep 2015 04:11:28 -0700 (PDT) To: internals@lists.php.net References: Message-ID: <560BC324.7010901@gmail.com> Date: Wed, 30 Sep 2015 12:10:28 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Arrow function expressions in PHP From: rowan.collins@gmail.com (Rowan Collins) Levi Morrison wrote on 29/09/2015 22:55: >> When you choose the function($x) ~> $x * 2 (or with ==> or => >> >operator), you end up saving around 5 or 6 characters from the "long >> >declaration", ending up with "not-so-short closures" instead. You save >> >a little bit more if you have the implicit "use", but that's one thing >> >people are torn about, by looking at the discussion about the RFC, but >> >I think it's too long, for "short closures". > Reading over the list I don't think people "are torn about" it. There > are some detractors, sure, but there seem to be more detractors about > symbol choice (~) and lack of type declarations. On a quick glance through the list I gathered the following names expressing disapproval of the automatic capture (apologies if I've misrepresented anyone's opinion here, it was a very quick skim through!): Dmitry Rasmus Peter Petermann Bishop Bettini Stas Ferenc Thomas Punt Plus a couple of other people on the fence on the issue (as am I): Marco Pivetta: "I am still conflicted..." Arne Blankerts: "I can see the benefit ... but consider it a break of concepts (habit?) from everywhere else in PHP." That seems like a significant proportion of the people actively participating in the thread to me; as mentioned elsewhere, there are more people who've voted no than have expressed their reasons on the list, and it's a mug's game to guess which factors influence whom. Also, remember that the votes on RFCs are intended to confirm consensus, not replace it - the idea is not to win over just enough people to "win", so it's not necessarily about numbers. That's not to say that automatic capture is an absolute blocker, but I think "the internals community is divided on it" is a reasonable summary. Regards, -- Rowan Collins [IMSoP]