qiang, on 21 July 2011 - 02:08 PM, said:
What benefits do you see? I see several drawbacks as I mentioned.
Also, it's hard to say the PHP world has settled down with capitalized namespace, even though ZF and Symfony are using that. Zend is using capitalized namespace because its 1.x version follows PEAR naming style. And Symfony2 is following Zend.
In Java and Python worlds, lower-case namespace is clearly prevailing.
Regardless of what other languages are doing, the majority of the PHP community clearly has settled on capitalized namespaces. So I think the greatest benefit is that of consistency. If you pick lower-case namespaces, you're going to have lots of third-party packages with capitalized namespaces, and it's going to end up looking messy.
Other than that, just as mentioned, the fact that they are names
in the most general sense, so "Rasmus\Schultz\Programmer" makes a lot more sense than "rasmus\schultz\Programmer". Which also just looks kind of odd to me as it's all mixed case, but that's a matter of taste, I suppose. It also makes it look to me as if the namespace is somehow less "important" than the class-name, when probably the opposite is actually the case, i.e. a machine is greater than the sum of it's components - well, hopefully ;-)
You could argue for one or the other, I guess - like the ever-undying debate about plural vs singular table-names. In the end, it's probably a matter of personal preference. Although as stated, given the fact that most new open-source projects use capitalized namespace names, I would stick with that, for consistency.
Why don't we just take a vote on it?