About 1: PHP isn't easier than Python. And no, weak typing is *not* a good idea, ever. It only makes things easier that are trivial to begin with, in the best case you save a few casts here and there. On the other hand, it encourages people to write code that'll work just fine as long as the input is what the programmer expected it to be, and fail catastropically when it's not.
About 2: embedding Python (or Ruby or Perl) is trivial using modules such as Spyce. And of course, Python has had lambdas, closures and proper OOP for way longer than PHP.
About 3: there's no sensible reason for mixing up arrays with dictionaries, they're simply different things. That doesn't imply that one is harder to use than the other (as can be seen in Python).
So sorry, but I don't buy those arguments. IMO, PHP does nothing better than the alternatives I've listed, and you haven't proven otherwise.
Posted Mar 5, 2012 9:07 UTC (Mon) by ggiunta (guest, #30983)
[Link]
And you have not proven in any way that "all the alternatives" you mentioned above are better than php, either - esp. Perl...
But to each its own, I guess
PHP 5.4.0 released
Posted Mar 5, 2012 12:40 UTC (Mon) by HelloWorld (guest, #56129)
[Link]
> And you have not proven in any way that "all the alternatives" you mentioned above are better than php, either - esp. Perl...
Perl has had *everything* for years that is "new" in PHP 5.4. Same thing with the 5.3 release. Plus it has proper Unicode support which PHP lacks to this day.
Also, I am not the one who started this discussion by asserting random stuff like PHP being irreplaceable, Kit is the one who should explain why he things this is so.