Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28547 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37161 invoked by uid 1010); 22 Mar 2007 14:19:17 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 37146 invoked from network); 22 Mar 2007 14:19:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Mar 2007 14:19:17 -0000 Authentication-Results: pb1.pair.com header.from=michael.walter@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=michael.walter@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.182.186 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: michael.walter@gmail.com X-Host-Fingerprint: 64.233.182.186 nf-out-0910.google.com Linux 2.4/2.6 Received: from [64.233.182.186] ([64.233.182.186:2527] helo=nf-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/23-00793-36092064 for ; Thu, 22 Mar 2007 09:19:16 -0500 Received: by nf-out-0910.google.com with SMTP id l35so1550832nfa for ; Thu, 22 Mar 2007 07:19:12 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pn7b2YHy6opvaJF++lJF/Ddz441sqLs7fcJHZ1f6E3JgpyBGhToMnL1azr+XC49ijzCvokEcTSb3D4dO1dsSFP4fb6T7iyWshZq62di5WhdXdDI7JdMKiYtq2V/aTP0wWyVmpe+dYAxxGeckRqiHpUw1gSANe4oI5ZruX+j+2Xc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QxpwgoD3KJOJc9U58cMho+bfbRieMMcDo1bnVWT5dnvWy9SzNyIoKHg3NpZZNogtviPquAvE938fxw+wU0IjC0IZ3jJsVx1Y9JyyaNZ8AaLPxXkYtmnWquubZPAXc3oNcqG7wuQrvFLYkaGR9WIWzlR2c1POdWWHc+NunJsgDAg= Received: by 10.78.138.14 with SMTP id l14mr963973hud.1174573151967; Thu, 22 Mar 2007 07:19:11 -0700 (PDT) Received: by 10.78.131.14 with HTTP; Thu, 22 Mar 2007 07:19:11 -0700 (PDT) Message-ID: <877e9a170703220719w4badd5a6y4345b508b3866131@mail.gmail.com> Date: Thu, 22 Mar 2007 15:19:11 +0100 To: "Christian Schneider" Cc: internals@lists.php.net In-Reply-To: <46028001.7060204@cschneid.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <86478A67-DCA2-4000-9EF0-DA4338E8389B@omniti.com> <45FEFDCE.7050100@zend.com> <1174339527.24632.129.camel@blobule> <45FF01FE.6070504@zend.com> <698DE66518E7CA45812BD18E807866CE185525@us-ex1.zend.net> <698DE66518E7CA45812BD18E807866CE18559A@us-ex1.zend.net> <40259.216.230.84.67.1174435351.squirrel@www.l-i-e.com> <877e9a170703220436l267d2648jc99aaaf9cccecfdd@mail.gmail.com> <46028001.7060204@cschneid.com> Subject: Re: [PHP-DEV] PATCH: anonymous functions in PHP From: michael.walter@gmail.com ("Michael Walter") Hi, On 3/22/07, Christian Schneider wrote: > Michael Walter wrote: > > Right. But then those people add 2 + 2 and get frustrated because they > > can't do the obvious ;) > > I find it all but obvious to being able to use non-local, non-global > variables in PHP. It's one of the main PHP points IMHO that a variables > is either local or explicitely accessed through $_GLOBALS (or super > globals). It gives me a warm and fuzzy feeling that I know everything > else is undefined and won't clash. Which seems to fit Andi's $_SCOPE proposal. > >> If somebody has a real-life demonstrated NEED for the > >> closures/scoping, by all means, bring it up. > > > > Plain old google brought up: > > http://groovy.codehaus.org/Martin+Fowler's+closure+examples+in+Groovy > > among other hits (Groovy syntax should be easy enough to follow). > > He said real-life examples (-:C Is that like "enterprise" examples? ;) Regards, Michael