Comments By: Kankamuso
-
Wow? Hackish? Insightful? No, it isn't. What's the difference between that and using "create_function" directly? Exactly none. In fact, you cannot assign several "lambda" results to variables and pass them around, as every one would refer in fact to a string with the name of the same global (gasp!) variable. Programmer baby Jesus is already crying. If you want to fool yourself with the idea that PHP has functional constructs, just assign the result of "create_function" to $func and use it with $func(params). Good luck if you use that, though. That "lambda" thing of yours is nothing more than syntax saccharine (not even sugar) with zero practical value and many, many problems (ugliness is the least of them). Sorry if I sound harsh, but this is what I think.posted on Aug 18, 2007 at 7:07pm | context