Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42529 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15528 invoked from network); 7 Jan 2009 12:57:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jan 2009 12:57:13 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.163 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 212.25.124.163 il-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.163] ([212.25.124.163:28488] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/AC-41481-7A6A4694 for ; Wed, 07 Jan 2009 07:57:13 -0500 Received: from [10.1.10.2] ([10.1.10.2]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 7 Jan 2009 14:57:52 +0200 Message-ID: <4964A69F.2060103@zend.com> Date: Wed, 07 Jan 2009 15:57:03 +0300 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Marcus Boerger CC: internals@lists.php.net, Lukas Kahwe Smith , =?UTF-8?B?Sm9oYW5uZXMgU2NobMO8dGVy?= References: <272365052.20090104173130@marcus-boerger.de> In-Reply-To: <272365052.20090104173130@marcus-boerger.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 07 Jan 2009 12:57:52.0425 (UTC) FILETIME=[8D10A190:01C970C7] Subject: Re: [RFC] Closures, Lambdas and use From: dmitry@zend.com (Dmitry Stogov) Personally I like the current syntax more and don't see any reason to change it. Thanks. Dmitry. Marcus Boerger wrote: > Hello Internals, Dmitry, Lukas, Johannes, > > some time back (August 08) I complained about 'use' being at a weird > position and not at the same place as 'global' or 'static' where I > expected it. Back then Dmitry asked me to provide a patch to check out > the alternative. Now during the holidys I finally found some time to > change from: > $f = function() use ($x) {} > to: > $f = function() { use $x; } > > Patch is attached. > > Comments? > > Best regards, > Marcus >