Re: New namespace implementation

From: Date: Tue, 02 Dec 2008 22:12:06 +0000
Subject: Re: New namespace implementation
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-42095@lists.php.net to get a copy of this message
On 02.12.2008, at 22:25, David Grudl wrote:
2) Relative Resolving I pointed out to inappropriate relative resolving earlier (http://news.php.net/php.internals/41837). In the world of well-written namespaced frameworks the ratio of usage of "more nested" classes vs. "less nested" is in large majority in favor of the second (http://news.php.net/php.internals/41980), but PHP prefer the first way. Now, the new implementation offers way to resolve names relative when it is needed - using 'namespace' operator (as equivalent of the 'self' operator). So I think now there is no reason to use default relative resolving and it should be removed.
Like Stas said, lets go with what we have and collect some feedback. Hopefully we will not have to do any larger changes to namespaces after alpha3, but if we have to we will. That being said I really hope that people honor the thought process that went into the current implementation by really giving things a go without prejudice. Your comments are noted and not ignored. regards, Lukas Kahwe Smith mls@pooteeweet.org

« previous php.internals (#42095) next »