Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38445 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30625 invoked from network); 20 Jun 2008 07:27:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2008 07:27:13 -0000 Authentication-Results: pb1.pair.com header.from=lenar@city.ee; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lenar@city.ee; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain city.ee from 217.159.201.104 cause and error) X-PHP-List-Original-Sender: lenar@city.ee X-Host-Fingerprint: 217.159.201.104 avalon.city.ee Linux 2.6 Received: from [217.159.201.104] ([217.159.201.104:36819] helo=mail.city.ee) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 92/52-16112-0DB5B584 for ; Fri, 20 Jun 2008 03:27:13 -0400 Received: (qmail 25254 invoked from network); 20 Jun 2008 10:27:08 +0300 Received: from unknown (HELO localhost) (192.168.7.144) by 192.168.7.144 with SMTP; 20 Jun 2008 10:27:08 +0300 X-Virus-Scanned: Debian amavisd-new at tristate.vision.ee Received: from mail.city.ee ([192.168.7.144]) by localhost (tristate.vision.ee [192.168.7.144]) (amavisd-new, port 10023) with LMTP id poHwcSqdEaxH; Fri, 20 Jun 2008 10:27:08 +0300 (EEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.city.ee (Postfix) with ESMTP id 7C07F6AC121; Fri, 20 Jun 2008 10:27:08 +0300 (EEST) Message-ID: <485B5BCC.1060003@city.ee> Date: Fri, 20 Jun 2008 10:27:08 +0300 User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: Rodrigo Saboya CC: internals@lists.php.net References: <4856A547.3080801@gmx.net> <485A35A0.9050602@zend.com> <485A63C7.5020600@gmail.com> <485A6F0C.4090809@zend.com> <7E.CB.10717.56C7A584@pb1.pair.com> In-Reply-To: <7E.CB.10717.56C7A584@pb1.pair.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP From: lenar@city.ee (=?UTF-8?B?TGVuYXIgTMO1aG11cw==?=) 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.