Re: AW: [PHP-DEV] Re: RFC: Dropping Namespace
| From: | Sam Barrow | Date: | Wed, 05 Dec 2007 18:20:33 +0000 |
| Subject: | Re: AW: [PHP-DEV] Re: RFC: Dropping Namespace | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-33753@lists.php.net to get a copy of this message | ||
This would be a good idea, if implemented with a compatibility layer to
be removed later.
::php
::str
::arr
::ob
etc
::ext
::mysql
::mysqli
Userland code can then use a namespace such as ::app, or just use the
global namespace with no worries. Probably not going to happen, atleast
not for a while, due to compatibility issues, but just a thought.
On Wed, 2007-12-05 at 17:43 +0100, Sebastian Bergmann wrote:
> Matthias Pigulla schrieb:
> > Given that it was technically feasible, (future) core classes should
> > be in namespaces as well.
>
> Or
>
> - Introduce namespaces in PHP 6
> - Move all functions and classes that are now global into
> (per-extension) namespace(s)
> - Add a fallback mechanism that looks up mysqli_query() as query()
> in the MySQLi extension's namespace for PHP 6.0, drop that BC
> layer in PHP 6.1
>
> Not saying that I would want this (I don't think I do), just mentioning
> the option.
>
> --
> Sebastian Bergmann http://sebastian-bergmann.de/ò©o
> }º†…=j êÜsn5
> GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69
>