Re: [PHP] Closures in PHP

2008-01-16 Thread Nathan Nobbe
On Jan 16, 2008 1:58 AM, Larry Garfield <[EMAIL PROTECTED]> wrote: > On Tuesday 15 January 2008, Nathan Nobbe wrote: > > > when i said a function would have to be loaded into the interpreter to > > avoid a runtime error > > upon invocation, i didnt mention that its best to programatically verify >

Re: [PHP] Closures in PHP

2008-01-15 Thread Larry Garfield
On Tuesday 15 January 2008, Nathan Nobbe wrote: > when i said a function would have to be loaded into the interpreter to > avoid a runtime error > upon invocation, i didnt mention that its best to programatically verify it > can be called before > letting the runtime error occur (of course you can

Re: [PHP] Closures in PHP

2008-01-15 Thread Nathan Nobbe
On Jan 15, 2008 7:31 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > when i said a function would have to be loaded into the interpreter to > avoid a runtime error > upon invocation, i didnt mention that its best to programatically verify > it can be called before > letting the runtime error occur (

Re: [PHP] Closures in PHP

2008-01-15 Thread Nathan Nobbe
On Jan 15, 2008 6:51 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Nathan Nobbe schreef: > > when it comes to create_function(), id say its just as painful as > building > > functions with html or writing queries by hand. namely, its prone to a > lot > > of string escaping which produces awful har

Re: [PHP] Closures in PHP

2008-01-15 Thread Jochem Maas
Nathan Nobbe schreef: when it comes to create_function(), id say its just as painful as building functions with html or writing queries by hand. namely, its prone to a lot of string escaping which produces awful hard to read code. i mean, the kind of code you write yourself and then look at a w

Re: [PHP] Closures in PHP

2008-01-14 Thread Nathan Nobbe
when it comes to create_function(), id say its just as painful as building functions with html or writing queries by hand. namely, its prone to a lot of string escaping which produces awful hard to read code. i mean, the kind of code you write yourself and then look at a week later and say 'what

Re: [PHP] Closures in PHP

2008-01-14 Thread Richard Lynch
On Mon, January 14, 2008 8:13 pm, Larry Garfield wrote: > On Monday 14 January 2008, Richard Lynch wrote: >> 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

Re: [PHP] Closures in PHP

2008-01-14 Thread Larry Garfield
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

Re: [PHP] Closures in PHP

2008-01-14 Thread Richard Lynch
On Thu, January 10, 2008 4:22 am, John Papas wrote: > Is there any functionality in PHP similar to closures? Sort of. There is a create_function: http://php.net/create_function > Are there any plans to add it..? There was discussion on the php-internals list last week about replacing create_fun

Re: [PHP] Closures in PHP

2008-01-10 Thread Jochem Maas
John Papas schreef: > Is there any functionality in PHP similar to closures? > > Are there any plans to add it..? read the archives of the php internals or all posts pertaining to closures, that will answer all your questions. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe