Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38497 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98346 invoked from network); 21 Jun 2008 17:11:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2008 17:11:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.94.56 as permitted sender) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Linux 2.6 Received: from [85.214.94.56] ([85.214.94.56:59625] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F2/FE-26505-7463D584 for ; Sat, 21 Jun 2008 13:11:35 -0400 Received: from MBOERGER-ZRH.corp.google.com (229-103.106-92.cust.bluewin.ch [92.106.103.229]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id 05AFF11DBCD; Sat, 21 Jun 2008 19:11:31 +0200 (CEST) Date: Sat, 21 Jun 2008 19:11:01 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1642933506.20080621191101@marcus-boerger.de> To: Dmitry Stogov CC: Lars Strojny , Christian Seiler , php-dev List , Andi Gutmans , Stanislav Malyshev In-Reply-To: <485BA062.6060006@zend.com> References: <4856A547.3080801@gmx.net> <485A35A0.9050602@zend.com> <485AF253.2070400@gmx.net> <485B908D.7000106@zend.com> <1213963419.28537.13.camel@localhost> <485BA062.6060006@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP From: helly@php.net (Marcus Boerger) Hello Dmitry, Friday, June 20, 2008, 2:19:46 PM, you wrote: > No it won't. > Dmitry. > Lars Strojny wrote: >> Hi Dmitry, hi Christian, >> >> Am Freitag, den 20.06.2008, 15:12 +0400 schrieb Dmitry Stogov: >>> $func = function ($x, $y) use $a, $b, $c { >>> } I really like your style here :-) We could discuss this over and over but what are we missgin at this point, should the patch just go into HEAD and we deal with tweaking the wording as we move on with trying it in real life? Personally I see 'parent' would work as well and I also doesn't matter to me whether the keyword has to be in fron or after the opening curly brace. thanks for your idea anyway. marcus >> Will lexical scoping work with normal ("named") functions too? >> >> function foo($x, $y) use $a, $b, $c { >> } >> Best regards, Marcus