2008-03-24

PHP rant : anonymous functions

Anonymous functions in PHP are a joke. Maybe not in their overall functionality but at least in their syntax, that is with create_function. I mean, really: the function is a string of code that somehow gets evaled into a function?

If you are going to have anonymous functions, it would be nice to be able to write them like functions.

No comments: