|
Posted by Oliver Grδtz on 09/30/07 10:01
RageARC schrieb:
> I mean the fuss that has been generated due to the fact that PHP
> didn't support namespaces. Even XML supports them, and I kinda don't
> see why it is so important, that's why I posted this topic ;).
Why? Because a good share of applications using PEAR stopped working
when PHP 5.1.0 came out and featured a class called "date". Version
5.1.1 had to be released in a hassle just four days later as a hotfix.
That wouldn't have happened with namespaces. That's why. The big crash
has already happened once! How about the next version of PHP featuring
native classes like "Output", "Log", "Users" and so on and so on?
PHP already encourages every programmer to use a name prefix for all
classes. Instead of "Date" the PEAR people should have used "PEAR_Date"
and the problem wouldn't have occurred. This time. Name prefixes work
against symptoms but they don't cure the disease. Not having namespaces
as safety net is a timebomb.
And these considerations don't even take the benefits of namespaces
regarding shorter names into account.
For all PHP4 coding style evangelists: PHP with namespace support will
gladly execute code not using them. So please go away, nothing to see here.
OLLi
--
Boone:"Red Shirt."
Lark:"Hu?"
Boone:"Red Shirt. Ever watched Star Trek?"
[LOST 111]
Navigation:
[Reply to this message]
|