Re: [PATCH] [RFC] Closures and lambda functions in PHP

From: Date: Sat, 21 Jun 2008 17:11:01 +0000
Subject: Re: [PATCH] [RFC] Closures and lambda functions in PHP
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-38497@lists.php.net to get a copy of this message
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

« previous php.internals (#38497) next »