Fri 18 May 2007
I ran into this and found it interesting. Someone has added support for anonymous functions in PHP.
With the patch you can now do stuff like:
Before you had to use a funky function generation call.
Tags: php
Fri 18 May 2007
I ran into this and found it interesting. Someone has added support for anonymous functions in PHP.
With the patch you can now do stuff like:
Before you had to use a funky function generation call.
Tags: php
May 18th, 2007 at 10:59 am
I stopped following the discussion after a while (and any discussion on the Internals Mailing List). I'm more interested in if they are going to have it in the next version of PHP. The patch is easy enough that you can add it yourself.
It is good that people with more karma was able to come in and support the idea.
May 18th, 2007 at 4:48 pm
Ah, that sounds absolutely delightful! I've always found JavaScript's first-class treatment of anonymous functions quite helpful, it's nice to see it come into PHP now.
May 19th, 2007 at 6:21 am
Edward: it's not first-class function. thing which gets into php is much simplier…
though, it's still not applied to the tree, as far as I know