News for hackers. Stuff that matters.
Re:PHP needs to die. What will replace it? by andfarm on Monday September 27, 2010 @05:49PM (#1733592)
> The Perl hash is the same as the PHP assoc. array...

Perl has real arrays as well as hashes, though. PHP only has one object which acts as both.

> PHP has both lambda's

create_function() isn't really a lambda: the created function isn't bound to the local variable namespace that it was defined in.

Re:PHP needs to die. What will replace it? by bl4k on Monday September 27, 2010 @06:08PM (#1733678)
no php has native lambdas and closures since 5.3.
Re:PHP needs to die. What will replace it? by andfarm on Tuesday September 28, 2010 @02:40PM (#1736742)
Fair enough! (http://php.net/manual/en/functions.anonymous.php) Still, it's taken them a long time to add that.