Re: Namespaces bug

From: Date: Wed, 26 Mar 2003 18:37:16 +0000
Subject: Re: Namespaces bug
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-331@lists.php.net to get a copy of this message
On Wed, 26 Mar 2003, Stanislav Malyshev wrote: > SH>> I believe the way it was designed was: > SH>> > SH>> namespace A { > SH>> namespace A:B { > SH>> class C { > SH>> } > SH>> } > SH>> } > > That's the same thing. As was noted repeatedly on the lists, ':' has no > semantic meaning, A and A:B are not related in any way. > > One again: > Namespaces are not 'nested'. You can define namespace inside other > namespace, this does not make them related. There's no namespace nesting. > ':' in namespace name does not mean anything. But it *is* confusing (just as function() { function() {} }, but of course we can not change that anymore). What is the reason of allowing this 'nested' stuff? Derick -- "my other box is your windows PC" ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ -------------------------------------------------------------------------

« previous php.internals (#331) next »