-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 > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php