Re: Alternative to multiple namespaces per file

From: Date: Sat, 31 May 2008 12:43:00 +0000
Subject: Re: Alternative to multiple namespaces per file
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-38021@lists.php.net to get a copy of this message
what I find really annoying about all this namespace stuff, is how would that be any different from class Fully_Qualified_Class_Name_Declaration { } /James On Sat, May 31, 2008 at 1:10 PM, Stan Vassilev | FM <sv_forums@fmethod.com> wrote: > > Hi, > > I suppose this has been discussed before, so I'll not repeat reasons unless > requested, but I just want to offer a possible feature to mitigate the > impact of "one namespace per file", which doesn't have controversial syntax > and hopefully less difficulties in the implementation: > > class Fully::Qualified::Class::Name::Declaration { .... } > > same as: > > namespace Fully::Qualified::Class::Name; > > class Declaration { .... } > > ... except of course this allows classes of different namespaces to be > declared in one file. Most namespace-enabled languages consider the above > declarations equivalent. Share your opinions. > > Regards, > Stan Vassilev

« previous php.internals (#38021) next »