Why use lambdas and recursion with PHP when there's tons of languages that do it better?
Why use lambdas and recursion with PHP when there's tons of languages that do it better?
From the comments here you would think it is bad that writing clean PHP is possible...
The risk of this just making the codebase even uglier is enormous.
So you just generate and then run the code through that if you need it to be human readable. I assume most companies don't give a shit as long as it works ;)
Availability on the target platform (cheap web hosters?), availability of libraries, familiarity with the language (of the entire team, both current and in the future), purpose (aiming to get to the market quickly, or trying to learn a new language?), compatibility or integration with an existing code base, et cetera.
All these deliberations taken together may lead to a decision to use PHP. If so, it is nice to have lambdas and recursion. "It's better in another language" is without meaning in that case, because the feature is so small compared to the other deliberations. It quickly turns into the better question: "is it good enough?"