Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20510 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12195 invoked by uid 1010); 26 Nov 2005 09:28:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 12179 invoked from network); 26 Nov 2005 09:28:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Nov 2005 09:28:08 -0000 X-Host-Fingerprint: 212.55.154.22 relay2.ptmail.sapo.pt Linux 2.4/2.6 Received: from ([212.55.154.22:35585] helo=sapo.pt) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id ED/31-56276-7AA28834 for ; Sat, 26 Nov 2005 04:28:08 -0500 Received: (qmail 14532 invoked by uid 0); 26 Nov 2005 09:28:03 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.156) by relay2 with SMTP; 26 Nov 2005 09:28:03 -0000 Received: (qmail 26138 invoked from network); 26 Nov 2005 09:28:03 -0000 X-AntiVirus: PTMail-AV 0.3.87.1 X-Virus-Status: Clean (0.00514 seconds) Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[81.193.142.211]) (envelope-sender ) by mta6 (qmail-ldap-1.03) with SMTP for ; 26 Nov 2005 09:28:03 -0000 Message-ID: <007801c5f26b$b38c3560$0100a8c0@pc07653> To: "Christian Schneider" , "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> <4387AF5F.4080204@cschneid.com> Date: Sat, 26 Nov 2005 09:28:03 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there) From: nlopess@php.net ("Nuno Lopes") > 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 Have I missed something or what? Why not use C++ style for namespaces? backslash is really ugly! Nuno