Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20468 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42339 invoked by uid 1010); 26 Nov 2005 00:39:20 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 42323 invoked from network); 26 Nov 2005 00:39:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Nov 2005 00:39:20 -0000 X-Host-Fingerprint: 195.226.6.9 darkcity.gna.ch Linux 2.4/2.6 Received: from ([195.226.6.9:48726] helo=darkcity.gna.ch) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 1F/8E-56276-7BEA7834 for ; Fri, 25 Nov 2005 19:39:20 -0500 Received: from localhost (localhost [127.0.0.1]) by darkcity.gna.ch (Postfix) with ESMTP id 322A113B9AD; Sat, 26 Nov 2005 01:39:16 +0100 (CET) Received: from unknown by localhost (amavisd-new, unix socket) id client-XX7I3R0g; Sat, 26 Nov 2005 01:39:14 +0100 (CET) Received: by darkcity.gna.ch (Postfix, from userid 65534) id B6ACC13B9AB; Sat, 26 Nov 2005 01:39:14 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on darkcity.gna.ch X-Spam-Level: ** X-Spam-Status: No, score=2.8 required=5.0 tests=AWL,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=disabled version=3.1.0 Received: from [192.168.1.44] (80-219-12-31.dclient.hispeed.ch [80.219.12.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTP id C049D13B95F; Sat, 26 Nov 2005 01:39:08 +0100 (CET) Message-ID: <4387AF5F.4080204@cschneid.com> Date: Sat, 26 Nov 2005 01:42:07 +0100 User-Agent: Mozilla Thunderbird 1.0 (X11/20041207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Marcus Boerger Cc: PHP internals References: <7.0.0.16.2.20051124161240.0573e640@zend.com> <20051125034515.6fefa4e2@localhost.localdomain> <43867C6C.2010209@prohost.org> <20051125040950.26305e08@localhost.localdomain> <43869FC5.4060708@lerdorf.com> <20051125075501.79718ee6@localhost.localdomain> <1132903004.9936.25.camel@localhost.localdomain> <1086017308.20051125091648@marcus-boerger.de> <01.D8.11378.05EC6834@pb1.pair.com> <1946534082.20051125100920@marcus-boerger.de> <4386D5C6.8040802@php.net> <4386E355.7020901@cschneid.com> <43870917.5070409@prohost.org> <43870E22.8000309@cschneid.com> <955021720.20051125202818@marcus-boerger.de> In-Reply-To: <955021720.20051125202818@marcus-boerger.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gna.ch Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there) From: cschneid@cschneid.com (Christian Schneider) Marcus Boerger wrote: > here again namespaces would be perfect. Given a lib that doesn't prefix > you'd simply do: > namespace LibNameHere { reqire "some_lib_include"; } > and be done...wohooo :-) Only if newly introduced PHP core classes use a namespace too. You'll have to use PHP\Date (or the like) if you want to avoid conflicts in existing code. Plus maybe something like "import PHP\Date as Date" or something along these lines if you want to avoid PHP\ in newly written code where you know that there is no Date class yet. PS: I'd rather have : for namespaces with the whitespace restriction for ? a:x : b:y than the confusing (escaping characters outside of a string?) backslash. - Chris