People who like to complain about PHP are rarely the same people who use it every day.
I mostly hear C/C++, Ruby, Python, etc. devs complain about PHP. Very rarely actual PHP developers.
And typically, their complaints are less of the moan-ass "waaah, they use a \ for namespace separation" and more "ugh, why don't they disabled emulated prepared statements by default"?
Only one side is constructive.
Typically, their complaints are about the ugly appearance and smell.
Only one side is constructive.
https://wiki.php.net/_media/rfc/php.ns.txt
Linked to at the bottom of:
Couldn't they provide a clearer explanation than simply dumping a huge IRC log like that??
But you get used to that kind of stuff writing PHP. At least Facebook is making things better.
PHP has an incredible knack for almost copying other languages' features, but making them uglier in some random way, for no particular added benefit.
(I know, I'm a hater... but seriously, why?)
You don't. This is just illustrating these classes are in the global namespace.
> PHP has an incredible knack for almost copying other languages' features, but making them uglier in some random way, for no particular added benefit.
Well you have a case for "no added benefit" typically they aren't ugly for a random reason. There's a lot of very necessary reasons for the way these things work while making a language which is still PHP. PHP isn't precompiled. PHP has autoloading of classes. PHP allows code to be imported into other code. Combining namespaces with all the other existing features isn't an easy task.