On 12/20/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > > I think we need it. In the current incarnation, anonymous functions > > are so impractical to use, that it's a barrier. I think that is > > unfortunate, because it could be an interesting and useful direction > > to take for PHP. The users, who don't know what a closure is, could > > Direction like what?
being able to do the following (and not to worry about runtime compilation) is a good reason on it's own: array_filter($my_data, function($test){ return 3 === ($test % 4) }); -- Alexey Zakhlestin http://blog.milkfarmsoft.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php