Re: [PHP] Closures

2008-03-19 Thread Zoltán Németh
> in short, functional programming support would have been great in php if it > had been incorporated early on, at this point i can live without it. if we > were going to see support for anything anonymous that i would welcome it > would be anonymous objects and the ability to create an object on

Re: [PHP] Closures

2008-03-18 Thread Nathan Nobbe
On Tue, Mar 18, 2008 at 10:49 PM, Ray Hauge <[EMAIL PROTECTED]> wrote: > Nathan Nobbe wrote: > > if we were going to see support for anything anonymous that i would > > welcome it would be anonymous objects and the ability to create an > > object on the fly from an interface as per java 5. > > I'm

Re: [PHP] Closures

2008-03-18 Thread Ray Hauge
Nathan Nobbe wrote: if we were going to see support for anything anonymous that i would welcome it would be anonymous objects and the ability to create an object on the fly from an interface as per java 5. I'm not sure if this would solve your problem (my lack of java knowledge is showing),

Re: [PHP] Closures

2008-03-18 Thread Nathan Nobbe
On Tue, Mar 18, 2008 at 12:07 PM, Ray Hauge <[EMAIL PROTECTED]> wrote: > I've been reading up on some of the parts of PHP that has been suggested > could be improved so that I could be more well informed. One of the > more "interesting" (for lack of a better word) suggestions is closures. > I've

[PHP] Closures

2008-03-18 Thread Ray Hauge
I've been reading up on some of the parts of PHP that has been suggested could be improved so that I could be more well informed. One of the more "interesting" (for lack of a better word) suggestions is closures. I've used closures primarily in JavaScript, and they are handy in that context,

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

[PHP] Closures in PHP

2008-01-10 Thread John Papas
Is there any functionality in PHP similar to closures? Are there any plans to add it..? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php