Re:An Exceptional Change in PHP 7.0
by wvenable on Monday October 05, 2015 @06:42PM
(#10335538)
> Now someone has to explain why on Earth you need the namespace separator if these class names are already in the namespace?
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.
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.