Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20526 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93617 invoked by uid 1010); 26 Nov 2005 12:40:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 93602 invoked from network); 26 Nov 2005 12:40:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Nov 2005 12:40:24 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:51537] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id CB/3B-56276-8B758834 for ; Sat, 26 Nov 2005 07:40:24 -0500 Received: from [192.168.1.3] (dslb-084-063-047-015.pools.arcor-ip.net [84.63.47.15]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 3CF33610282; Sat, 26 Nov 2005 13:46:39 +0100 (CET) Date: Sat, 26 Nov 2005 13:38:27 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1846537918.20051126133827@marcus-boerger.de> To: Christian Schneider Cc: PHP internals In-Reply-To: <4387AF5F.4080204@cschneid.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there) From: helly@php.net (Marcus Boerger) Hello Christian, Saturday, November 26, 2005, 1:42:07 AM, you wrote: > 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. And kill trillions of php scripts, how funny. Think before writing. Best regards, Marcus