Re: Why are the PHP namespaces different compared to C++?

From: Date: Fri, 07 Sep 2012 00:55:20 +0000
Subject: Re: Why are the PHP namespaces different compared to C++?
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-62886@lists.php.net to get a copy of this message
Hi! > That's true, but we do got the ability to import only one class from > given namespace and classes aliasing so we can, for example, do > something like: When you import one name, you see this name in import statement. It's explicit. Global imports are not. I really hate to rehash discussion from years ago all from the start. Please believe we did think about it - including having special options, functions, configurations, INI entries, etc. for defining imports. It's not worth it to save couple of keystrokes on namespace prefix, really. Not everything should live in global space, that's the whole point of namespaces. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#62886) next »