Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38468 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76589 invoked from network); 20 Jun 2008 15:05:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2008 15:05:45 -0000 Authentication-Results: pb1.pair.com header.from=chrisstocktonaz@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=chrisstocktonaz@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.82.229 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: chrisstocktonaz@gmail.com X-Host-Fingerprint: 66.249.82.229 wx-out-0506.google.com Received: from [66.249.82.229] ([66.249.82.229:61940] helo=wx-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7D/BE-16112-747CB584 for ; Fri, 20 Jun 2008 11:05:45 -0400 Received: by wx-out-0506.google.com with SMTP id s12so389373wxc.26 for ; Fri, 20 Jun 2008 08:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=XEZM7HcYlWi8q2cODSJ52Ny+nPenm22H9AXHyI/oqb4=; b=FOsjG13/wxiPPqye9LmkZ/p6FavH4xdRUmZiYUqldIF9XuQM6oOzjEv8Hpoc+/ztpJ jzTIeLLUPy+A2G18bbEMiwx//aQUWvErWn3NZ6uXL+Klns9X/WPUOk3vgLy61Jz2r88u PK/O48yyoTLDojdakJepFG40f2YPAq+b4/B1E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=UIpdywCBFnKj7rIyzAEYjiYZjmqtaydUz/QCf82Qmfe9c8TGqNd38YoNJwBoqLx8A1 0teHfAkf/9GDuC9GABoV2/qmPApGgrC04cI2AS7JLIkHihSujBsZfv9SGF9xMJZn4Pc6 jivQa29EZLZn8WZe7tLs51w2sHi6NyixW62wQ= Received: by 10.143.11.15 with SMTP id o15mr1326885wfi.227.1213974339441; Fri, 20 Jun 2008 08:05:39 -0700 (PDT) Received: by 10.142.230.16 with HTTP; Fri, 20 Jun 2008 08:05:39 -0700 (PDT) Message-ID: Date: Fri, 20 Jun 2008 08:05:39 -0700 To: internals@lists.php.net In-Reply-To: <200806201633.08425.waqner@gmx.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7376_657955.1213974339437" References: <4856A547.3080801@gmx.net> <485B5BCC.1060003@city.ee> <200806200729.40623.larry@garfieldtech.com> <200806201633.08425.waqner@gmx.net> Subject: Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP From: chrisstocktonaz@gmail.com ("Chris Stockton") ------=_Part_7376_657955.1213974339437 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, No one at all thinks: function foo($x, $y) use $a, $b, $c { } Looks awkward and a little out of place when compared to: vs function foo($x, $y) { lexical $a, $b, $c; } Although the fact we have to import variables from the parent scope kinda stinks and is not typical in closer implementations, we should at least import into the scope in a way consistent with how we do it already with GLOBAL right? Just seems a lot cleaner IMO. -Chris ------=_Part_7376_657955.1213974339437--