Re: AW: [PHP-DEV] A rebuttal to Re: RFC: Dropping Namespace

From: Date: Sun, 09 Dec 2007 02:12:45 +0000
Subject: Re: AW: [PHP-DEV] A rebuttal to Re: RFC: Dropping Namespace
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-33879@lists.php.net to get a copy of this message
Hi Greg, How about this: any non-namespaced file that uses "use" statements is implicitly put into the __php__ namespace (or whatever other name is chosen, or having the namespace name be the path of the file)? With this, "use" will never import any symbols into the global namespace. Regards, Jessie Ford, Mike wrote:
On 07 December 2007 17:36, Gregory Beaver wrote:
The suggestion to make "namespace __php__;" implicit is very interesting, but would defeat its purpose, which is to separate declarations from use.
Oh, I missed that little wrinkle -- I did say I was only skimming! I guess it could still be done, but at somewhat greater cost in the engine than I was imagining, which probably isn't worthwhile. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, JG125, The Headingley Library, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk
Tel: +44 113 812 4730          Fax:  +44 113 812 3211 
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm


« previous php.internals (#33879) next »