Re: Simple Namespace Proposal

From: Date: Mon, 23 Jul 2007 14:11:38 +0000
Subject: Re: Simple Namespace Proposal
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-31187@lists.php.net to get a copy of this message
1) Do we have unnamed namespaces available ?
I'm not sure what it is but most probably no.
2) In short and clear, why are braces not being used ? C++, C# uses it. (Short answer and if the answer is "Developer didn't want to do it..." just say "Usual"
PHP is not C++, C#. For the rest of explanation I'd recommend re-reading the thread.
3) Do we have aliasing available ? (Ex: namespace PHP_NSX = PHP_NS1::PHP_NS2)
Yes, it's called "import".
4) Are nested namespaces available ?
No, but you can have name for one namespace be substring of the name of other namespace.
5) Were there any test provided with such feature commit ? If so where could I see them to use them and maybe answer my own questions (And I do not have time to read through all the patch to see if it does)
Yes, there are tests in Zend/tests, ones starting with ns_. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#31187) next »