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

From: Date: Wed, 18 Jun 2008 06:36:52 +0000
Subject: Re: [PATCH] [RFC] Closures and lambda functions in PHP
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-38340@lists.php.net to get a copy of this message
On 6/18/08, Andi Gutmans <andi@zend.com> wrote: > 1) I am not sure that the current semantics of the "lexical" keyword is great in all > cases. Is the reason why you don't allow by-value binding so that we don't have to manage > more than one lambda instance per declaration? by-reference binding is much closer to other languages symantics. I guess, that was the main reason Christian chose it. "by-value" may still exist, if people find, that they need it, but only in addition, please. lambda has to reflect changing state of context, to be truly useful -- Alexey Zakhlestin http://blog.milkfarmsoft.com/

« previous php.internals (#38340) next »