Yes, it would be. What's the problem with that? I'm coming from the background of a plugin-based architecture where plugins routinely add functions that would, conceptually, "exist" in a different namespace.
That would require having both multiple namespaces per file and multiple files per namespace. If we can't do that then we're back to using static classes as if they were namespaces. On Sunday 08 July 2007, Dmitry Stogov wrote: > -1 for braces and multiple namespaces per file > > Braces will allow define something outside namespace and I like to avoid > this possibility. > In the following "correct" example function bar() is defined in global > namespace. > > <?php > namespace A::B { > > function foo() { > } > > } > > function bar() { > } > ?> > > Dmitry. > > > -----Original Message----- > > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Sebastian Bergmann > > Sent: Sunday, July 08, 2007 10:13 AM > > To: internals@lists.php.net > > Subject: Re: [PHP-DEV] Simple Namespace Proposal > > > > Nicolas Bérard-Nault schrieb: > > > +1 for braces around namespace definition. > > > > -0 on that, because there is no clear "standard" with regard > > to how other programming languages solve this. > > > > Java does not require braces with its "package" construct > > [1] and C# does for its "namespace" construct [2]. > > > > -- > > [1] > > http://java.sun.com/docs/books/jls/third_edition/html/packages.html > > [2] http://www.jaggersoft.com/csharp_standard/8.12.htm > > > > -- > > Sebastian Bergmann > > http://sebastian-bergmann.de/ > > GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 > > C514 B85B 5D69 > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php