namespace A::B
{
   class BooYa
   {
       const C = 'Foo';
   }
}

--- Then..

import A::B::BooYa;
echo BooYa::C;

Well, we could have braces but...

That way we can put more than one namespace within a file or such...

That is exactly what I don't want to have, since then you can't see in the file which name means what - you'd have to trace it back to including namespace to see what is the real name of the class.

Also if we do braces next thing would be asked to do namespace { namespace {} } and we don't want that either :) We try to keep it really simple.

--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to