Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40776 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17700 invoked from network); 29 Sep 2008 14:43:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Sep 2008 14:43:09 -0000 Authentication-Results: pb1.pair.com header.from=j.boggiano@seld.be; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=j.boggiano@seld.be; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain seld.be from 209.85.217.14 cause and error) X-PHP-List-Original-Sender: j.boggiano@seld.be X-Host-Fingerprint: 209.85.217.14 mail-gx0-f14.google.com Received: from [209.85.217.14] ([209.85.217.14:43112] helo=mail-gx0-f14.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/60-36431-C79E0E84 for ; Mon, 29 Sep 2008 10:43:09 -0400 Received: by gxk7 with SMTP id 7so10372867gxk.23 for ; Mon, 29 Sep 2008 07:43:06 -0700 (PDT) Received: by 10.150.133.18 with SMTP id g18mr7954927ybd.188.1222699386379; Mon, 29 Sep 2008 07:43:06 -0700 (PDT) Received: by 10.151.110.2 with HTTP; Mon, 29 Sep 2008 07:43:06 -0700 (PDT) Message-ID: <4bcbf4710809290743m57acbe96q857fb733f32d0ea8@mail.gmail.com> Date: Mon, 29 Sep 2008 16:43:06 +0200 To: internals@lists.php.net In-Reply-To: <84.E0.53562.C6300E84@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9E3A4397-3595-42D8-BF73-7F7575B93772@pooteeweet.org> <003501c92037$9512fef0$3ffc1f3e@foxbox> <48DD7E3D.5060708@zend.com> <006701c92039$6245dc20$3ffc1f3e@foxbox> <48DDB24A.7090705@chiaraquartet.net> <81.6B.30545.B4C3ED84@pb1.pair.com> <48DE9455.6020608@chiaraquartet.net> <007801c92176$8fdaaba0$3ffc1f3e@foxbox> <84.E0.53562.C6300E84@pb1.pair.com> Subject: Re: [PHP-DEV] alpha3 From: j.boggiano@seld.be ("Jordi Boggiano") On Mon, Sep 29, 2008 at 12:21 AM, Ryan Panning wrote: > +1, I second this completely > > From someone who *was* using namespaces developing against the 5.3 branch, > this is going to happen sooner or later. I found that :: just causes to many > questions when used in namespaces. Using :: or -> just for the sake of > reusing existing tokens is just wrong. I'm in favor of # if it can be worked > out. +1 as well, but I must say # is not right, it is a very black/filled character, as in it doesn't visually#separate#words#that#well. Using the dot would be really nice, but I guess it would break with something like this : "concat".foo.bar()."baz" so it's not an option. Using a single colon might work out ? foo:bar:class::staticFunc() sounds good to me, but maybe I missed something. I also had the idea of using the underscore, even though I guess we can't go through with this as people _might_ have used double underscores in their class names, I guess it would work out quite well with single underscores, for example : class Foo_Bar { public static function callMe() } Foo_Bar::callMe(); ..would be read as class Bar in namespace Foo, but it would be transparent to everyone since if you use something with a fully qualified name you don't need to "use" them, right ? Anyway it's just a couple ideas, but please stop holding on to that double colon. -- Jordi