Re: Closures in PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 14 January 2008, Richard Lynch wrote:

> And, actually, the implementation that seemed to get the most
> approbation was a simple way to create a function as a kind of a
> resource (like a MySQL connection resource) and then you could pass it
> around and use it.
>
> It still didn't have a full-blown closure behaviour, as I recall, of
> keeping the entire environment at the time of the function defintion.

The better version, I thought, had the lexical keyword so you could keep 
around those variables you actually want.  Not sure what the status of it is.

> If you want something that esoteric, go use Lisp. :-)

You are aware that of the "modern" web languages (PHP, Javascript, Python, 
Ruby, etc.) PHP is the only one that doesn't have at least partial closures 
and dynamic functions, right?

-- 
Larry Garfield			AIM: LOLG42
larry@xxxxxxxxxxxxxxxx		ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux