Re: PATCH: anonymous functions in PHP

From: Date: Thu, 22 Mar 2007 14:26:30 +0000
Subject: Re: PATCH: anonymous functions in PHP
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-28548@lists.php.net to get a copy of this message
Michael Walter wrote: >> 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. Yes, but is a point against a real closure proposal. >> He said real-life examples (-:C > > Is that like "enterprise" examples? ;) No, it's like non-textbook example (which can also run on a Bird of Prey or a Klingon starship :-)) - Chris

« previous php.internals (#28548) next »