4 ms·
"I have to wonder exactly what problem it solves that Perl, Ruby, and Python haven't already done better" I don't know what, but evidence (Wikipedia, Facebook,
by nir 18y ago
"I have to wonder exactly what problem it solves that Perl, Ruby, and Python haven't already done better"
I don't know what, but evidence (Wikipedia, Facebook, Yahoo, Digg, Wordpress, Drupal...) seem to say that there is something PHP is doing significantly better than all of these.
"What do you think the average newbie PHP developer is going to do the first time they encounter a function which closes over a class instance as state, and then returns a lambda?"
Perhaps they won't encounter this at all, but they might well be coding inside a framework - whether light MVC or something like Drupal - that makes use of this. For something to be useful it doesn't have to be useful for everyone who use the language.
- rcoder 18y ago> I don't know what, but evidence (Wikipedia, Facebook, Yahoo, Digg, Wordpress, Drupal...) seem to say that there is something PHP is doing significantly better than all of these. I think that PHP is doing precisely what I said it was good at: wrapping high-performance C libraries with a higher-level syntax for doing fast dynamic web content generation. It's not a good systems language, and features trying to make it more like one always feel a bit "bolted-on." > For something to be useful it doesn't have to be useful for everyone who use the language. Actually, changes to core language syntax aboslutely need to be considered in light of their relevance to the entire user community, not just the most experienced developers. Most programmers spend far more time reading code than writing it. If you increase the complexity of a language, (note: I mean semantic complexity here, not syntactic) you increase the difficulty involved in reading it. In my not-so-humble opinion, PHP works when aimed at the lower end of the semantic complexity scale. Trying to turn it into a general-purpose language for "programming in the large" seems a rather unfortunate use of energy, given (as you pointed out) its obvious success in its existing niche.