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

From: Date: Fri, 20 Jun 2008 07:27:08 +0000
Subject: Re: [PATCH] [RFC] Closures and lambda functions in PHP
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-38445@lists.php.net to get a copy of this message
Hi, Rodrigo Saboya wrote:
function ($x, $y) ($a, $b, $c) {};
This looks better
function ($x, $y) [$a, $b, $c] {};
I think this looks even better: function ($x, $y) use ($a, $b, &$c) {}; (one could use this syntax even for traditional functions to use variable copies/references from global scope - just an idea). my 2, L.

« previous php.internals (#38445) next »