Re: Re: PATCH: anonymous functions in PHP

From: Date: Mon, 17 Dec 2007 07:44:03 +0000
Subject: Re: Re: PATCH: anonymous functions in PHP
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-34051@lists.php.net to get a copy of this message
Hi, Am Sonntag, den 16.12.2007, 11:56 -0800 schrieb Stanislav Malyshev: > > Actually it's the opposite. With create_function, you can bind > > variables, by marshalling them to a string and embed them in the > > That's not binding. But the problem is, seeing this, one expects > closure. And it's no closure. Maybe deprecating create_function() and allowing something like that would be a way to go? $func = function($arg) { return $arg; } As it is compile time, the issue with Op-Code caches would/should go away. cu, Lars -- Lars Strojny Senior Software Developer Neu.de GmbH Wesselinger Strasse 28 50999 Köln Eingetragen beim Amtsgericht Köln, HRB 61021 Geschäftsführer: Sven Jan Arndt, Christian Dornhoff Telefon: 02236-48010-21 Fax: 02236-48010-01 Mobil: 0177-3058654 E-Mail: lstrojny@neu.de Jabber: lars@mabber.com

Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc
« previous php.internals (#34051) next »