Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33971 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81511 invoked by uid 1010); 12 Dec 2007 13:14:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 81496 invoked from network); 12 Dec 2007 13:14:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Dec 2007 13:14:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.163 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.163 mail4.netbeat.de Received: from [83.243.58.163] ([83.243.58.163:45815] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7B/7F-38526-5AEDF574 for ; Wed, 12 Dec 2007 08:14:14 -0500 Received: (qmail 8406 invoked by uid 507); 12 Dec 2007 13:14:10 -0000 Received: from unknown (HELO ?192.168.1.102?) (postmaster%schlueters.de@82.135.11.142) by mail4.netbeat.de with ESMTPA; 12 Dec 2007 13:14:10 -0000 To: Gregory Beaver Cc: internals Mailing List In-Reply-To: <475F1984.603@chiaraquartet.net> References: <475F1984.603@chiaraquartet.net> Content-Type: text/plain Date: Wed, 12 Dec 2007 14:14:04 +0100 Message-ID: <1197465244.12523.22.camel@johannes.nop> Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 (2.12.2-2.fc8) Content-Transfer-Encoding: 7bit Subject: Re: namespace improvements to be committed very soon - final review From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, On Tue, 2007-12-11 at 17:13 -0600, Gregory Beaver wrote: > Hi, > > I've been furiously working behind the scenes with Stas and Dmitry, and > have some enhancements to namespaces in the form of 2 patches. > > 1) multiple namespaces per file > 2) use ::name; > > 1) multiple namespaces per file > > This is implemented as such: > > namespace one; > use Blah::A; > // code > namespace two; > use Foo::A; > ?> I don't care about multiple namespaces per file, but if we allow multiple namespaces in one file we should also enforce these. If we don't enforce the braces people will write code like above and that's really bad for maintenance. (While it makes me even more happy that I don't do consulting stuff anymore - I don't read other people's PHP code anymore - but from that time I know that people will misuse such a feature) johannes