On Aug 15, 2005, at 2:52 PM, sebastian wrote:
W4: Better lambda/anonymous functions and debugging for them.
Consider Perl's anonymous functions which disappear as the
references to them disappear. See the create_function() docs for
notes about "memory leaks."
Well, Perl subroutines are first class objects, while PHP functions
are not. That having been said, one of the number one things I miss
from perl is being able to say:
$sub = { ... };
The nice part is that you don't need to do wacky escaping inside the
text for the function. It would be swell for PHP to support:
$func = function ($a,$b,$c) {
// ...
}
and also require no escaping (even while using the existing
create_function symbol table storage semantics).
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php