Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47011 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50404 invoked from network); 21 Feb 2010 10:48:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Feb 2010 10:48:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=webmaster@keryx.se; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=webmaster@keryx.se; sender-id=pass Received-SPF: pass (pb1.pair.com: domain keryx.se designates 208.69.121.33 as permitted sender) X-PHP-List-Original-Sender: webmaster@keryx.se X-Host-Fingerprint: 208.69.121.33 supavet.nexcess.net Received: from [208.69.121.33] ([208.69.121.33:52380] helo=supavet.nexcess.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3C/2F-29373-48F018B4 for ; Sun, 21 Feb 2010 05:48:36 -0500 Received: (qmail 23234 invoked by uid 108); 21 Feb 2010 05:48:33 -0500 Received: from unknown (HELO z61p.keryx.se) (gunther@keryx.se@90.228.192.235) by supavet.nexcess.net with AES256-SHA encrypted SMTP; 21 Feb 2010 05:48:33 -0500 Message-ID: <4B810F7F.7000505@keryx.se> Date: Sun, 21 Feb 2010 11:48:31 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.1 MIME-Version: 1.0 To: internals@lists.php.net References: <4B54FC87.8070106@zend.com> <4F.56.22457.408955B4@pb1.pair.com> <4B55D850.8000604@zend.com> <4B808294.1070801@keryx.se> <20100221025510.GA9984@joeysmith.com> In-Reply-To: <20100221025510.GA9984@joeysmith.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] On closures and lamdba From: webmaster@keryx.se (Keryx Web) 2010-02-21 03:55, Joey Smith skrev: > There's a pretty big difference between how PHP implements closures and how > JavaScript implements them I have seen that, but my question is about language, not implementation. FWIW, taking my educator perspective, PHP's way of explicitly pointing out what variables are part of the closure is very easy to explain. The way you are using the word "closure" in your reply is consistent with the way I'd like to see it used, though. -- Keryx Web (Lars Gunther) http://keryx.se/ http://twitter.com/itpastorn/ http://itpastorn.blogspot.com/