Re: Simple Namespace Proposal
| From: | Stefan Priebsch | Date: | Sat, 07 Jul 2007 16:23:57 +0000 |
| Subject: | Re: Simple Namespace Proposal | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-30596@lists.php.net to get a copy of this message | ||
Sebastian Bergmann schrieb:
> Why not "expand" namespaces during these step? The resulting file would
> then have either only one namespace or no namespace at all.
A good idea, but (much) more work of course, since it requires parsing
and rewriting every file. And I am not sure, if this really works out
when it comes to dynamically creating class and function names.
Is there a chance to add a PHP function that returns a "fully qualified"
name for a given name (thus letting the engine do the expansion, which
would ensure that correct rules are used)?
Kind regards,
Stefan
--
>e-novative> - We make IT work for you.
e-novative GmbH - HR: Amtsgericht München HRB 139407
Sitz: Wolfratshausen - GF: Dipl. Inform. Stefan Priebsch
http://www.e-novative.de