Re: Migrating PHP classes to built in namespace
| From: | Sebastian B.-Hagensen | Date: | Mon, 15 Jun 2015 14:27:15 +0000 |
| Subject: | Re: Migrating PHP classes to built in namespace | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-86658@lists.php.net to get a copy of this message | ||
Hi,
2015-06-15 16:09 GMT+02:00 Jakub Kubíček <kelerest123@gmail.com>:
> I think clean global namespace isn't enough argument, we can exist in
> the current situation and considering the fact that most of the new
> PHP applications have their own namespaces, it could probably make
> more sense to reserve global namespace as *the PHP namespace*.
I don't know how well known that page is, but the manual already hints
towards php ruling the "root"-namespace:
> PHP owns the top-level namespace but tries to find decent descriptive names and avoid any
> obvious clashes.
http://php.net/manual/en/userlandnaming.rules.php
On an unrelated note:
http://php.net/manual/en/userlandnaming.tips.php
should hint towards
real namespaces.