Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38034 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64379 invoked from network); 31 May 2008 17:01:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2008 17:01:19 -0000 Authentication-Results: pb1.pair.com header.from=larry@garfieldtech.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=larry@garfieldtech.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain garfieldtech.com from 76.96.30.32 cause and error) X-PHP-List-Original-Sender: larry@garfieldtech.com X-Host-Fingerprint: 76.96.30.32 qmta03.emeryville.ca.mail.comcast.net Received: from [76.96.30.32] ([76.96.30.32:50167] helo=QMTA03.emeryville.ca.mail.comcast.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A8/B1-54820-D5481484 for ; Sat, 31 May 2008 13:01:19 -0400 Received: from OMTA05.emeryville.ca.mail.comcast.net ([76.96.30.43]) by QMTA03.emeryville.ca.mail.comcast.net with comcast id YB4R1Z03A0vp7WLA30Th00; Sat, 31 May 2008 17:01:13 +0000 Received: from earth.ufp ([24.13.255.226]) by OMTA05.emeryville.ca.mail.comcast.net with comcast id YH1C1Z00F4trKQ88R00000; Sat, 31 May 2008 17:01:13 +0000 X-Authority-Analysis: v=1.0 c=1 a=l-sS7Jnx_a0A:10 a=TrinOZtRaeAA:10 a=on-S-o97Li7pzsXyuzUA:9 a=cyd--sMDsFoT42Dwh7gA:7 a=8oFA7EX9RzejxdQ6JO9Zs5uNynsA:4 a=FHBbIDN7CdwA:10 a=LY0hPdMaydYA:10 Received: from localhost (localhost [127.0.0.1]) by earth.ufp (Postfix) with ESMTP id 0FD7BD864C for ; Sat, 31 May 2008 12:01:12 -0500 (CDT) Received: from earth.ufp ([127.0.0.1]) by localhost (earth.ufp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yu9bRQTVqI5L for ; Sat, 31 May 2008 12:01:12 -0500 (CDT) Received: from vulcan (unknown [192.168.42.1]) by earth.ufp (Postfix) with ESMTP id CB6CBD8635 for ; Sat, 31 May 2008 12:01:11 -0500 (CDT) To: internals@lists.php.net Date: Sat, 31 May 2008 12:01:08 -0500 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) References: <462e563f0805310602t350f8c29p96357b65aef2d14a@mail.gmail.com> In-Reply-To: <462e563f0805310602t350f8c29p96357b65aef2d14a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200805311201.09416.larry@garfieldtech.com> Subject: Re: [PHP-DEV] Alternative to multiple namespaces per file From: larry@garfieldtech.com (Larry Garfield) On Saturday 31 May 2008, James Dempster wrote: > I would agree with you, I think namespaces should wait for a later version. > Maybe 6 or even later. I believe there are many problems that need to be > sorted be namespaces hit release. > > Maybe we could do something like so. > > namespace Fully::Qualified::Class::Name class Declaration extends Whatever > implents MyInterface { } > > I have reservations in using :: as a resolution operator which can easily > clash with normal class space usage. > > Is it too late to have these discussions?? It seems I missed the big > namespace discussions on the mailing list and things have already gone > ahead. > > /James Unfortunately it probably is. I recall someone did raise the ClassName::staticMethod() vs. Namespace::function() collision problem months ago, and the response at the time was "Pfft, like who uses classes and functions in the same project, anyway?" (Of course, the answer is "well I do" but I've long since learned that such answers don't carry much weight around here, so I mostly just read to see where the language is going rather than to influence it. So I've just resigned myself to not being able to use namespaces in PHP.) -- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson