Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98091 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34449 invoked from network); 31 Jan 2017 20:45:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jan 2017 20:45:06 -0000 X-Host-Fingerprint: 137.50.184.77 oa-edu-184-77.wireless.abdn.ac.uk Received: from [137.50.184.77] ([137.50.184.77:19210] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D1/1B-51557-257F0985 for ; Tue, 31 Jan 2017 15:45:06 -0500 Message-ID: To: internals@lists.php.net References: <3F428CA4-8211-44E6-9B60-62ADB47934B3@koalephant.com> <5bfde844-beee-0f15-1f92-f77607f70ae6@mabe.berlin> Date: Tue, 31 Jan 2017 20:45:02 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 MIME-Version: 1.0 In-Reply-To: <5bfde844-beee-0f15-1f92-f77607f70ae6@mabe.berlin> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 137.50.184.77 Subject: Re: [PHP-DEV] Re: [RFC][Discuss] Arrow Functions From: ajf@ajf.me (Andrea Faulds) Hi Marc, Marc Bennewitz wrote: > - Also I like the "use" keyword you have to define your variables > > -> Would it be helpful to allow "function () use (*) {}" to inline > all available variables? I did think of that, but it's not as concise as not having to specify `use` at all. You could take the opposite approach and auto-capture by default, but permit `use ()` to capture nothing, alongside regular `use (...)` for explicit capture of variables. Thanks. -- Andrea Faulds https://ajf.me/