Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41475 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88025 invoked from network); 27 Oct 2008 18:19:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Oct 2008 18:19:46 -0000 Authentication-Results: pb1.pair.com header.from=olafurw@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=olafurw@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.82.224 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: olafurw@gmail.com X-Host-Fingerprint: 66.249.82.224 wx-out-0506.google.com Received: from [66.249.82.224] ([66.249.82.224:47953] helo=wx-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B1/B6-34199-24606094 for ; Mon, 27 Oct 2008 13:19:46 -0500 Received: by wx-out-0506.google.com with SMTP id s12so774115wxc.26 for ; Mon, 27 Oct 2008 11:19:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=EY2BYDm+hTk5HJNFBLALCsmd9PfVA2d8L4g3CiotSMM=; b=f/ZLWQx+1W+z0iuyEqYF4QjeuNb3EpOQPtj9R/28j8s7pYZhiL7UAwqYboXUgg4PBk ep2WyzmU35F7oIS+8xj/cyW+VP8/2bL/iDzJDsUNO6OFtLhoEk/rVlXuW71eLm5/vWU5 VHBBvjGVlcxWUK6Ld+q24b3GFQE/YPMpf7dA4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=jan+6sxhrb+UbRiBPKY8t711Ccj/s4ZxAQ3GXyLJD46iDhzQDsgXUpBojowrnyxI9E 8vslQNRDsAnEWO7DjV7fVGb9k59JRV8bbJKZ/o8orgkvO8HHaswpnU4c4VwHBPA+57Nc QdvJ2Qcm9uH3aU4Vnndv2kT1NeB2CInY8QOPg= Received: by 10.142.238.4 with SMTP id l4mr2841474wfh.24.1225131583376; Mon, 27 Oct 2008 11:19:43 -0700 (PDT) Received: by 10.143.17.19 with HTTP; Mon, 27 Oct 2008 11:19:43 -0700 (PDT) Message-ID: <8c35d7690810271119t1167ff6ev8ce6102915c80c87@mail.gmail.com> Date: Mon, 27 Oct 2008 18:19:43 +0000 To: internals@lists.php.net In-Reply-To: <1225128501.6991.22.camel@goldfinger.johannes.nop> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <64B4CECA-980F-4738-8B05-E7935741D7BB@pooteeweet.org> <7f3ed2c30808272332m3066d1e5s677bb91f4b80c4b5@mail.gmail.com> <48B6E3A8.8030903@zend.com> <7f3ed2c30808291243x3ca7133cl5e15353368b25480@mail.gmail.com> <48B85548.1030608@zend.com> <99cd336d0810270813p44f2ee7fke3734ff45f4be5a4@mail.gmail.com> <1225121482.6991.20.camel@goldfinger.johannes.nop> <8c35d7690810270850r7d53e40fvfdc1fd7e78030d6b@mail.gmail.com> <7f3ed2c30810270953m2799d782j51042504fb6d3b98@mail.gmail.com> <1225128501.6991.22.camel@goldfinger.johannes.nop> Subject: Re: [PHP-DEV] alpha2 scheduled From: olafurw@gmail.com ("=?ISO-8859-1?Q?=D3lafur_Waage?=") > $class =3D '\ foo \ bar \ baz'; In those cases i get why its an issue. But when i look at: namespace\class\method() against namespace \ class \ method() I get the feeling that \ is a pretty good solution. 2008/10/27 Johannes Schl=FCter : > On Mon, 2008-10-27 at 17:53 +0100, Hannes Magnusson wrote: >> On Mon, Oct 27, 2008 at 16:50, =D3lafur Waage wrote: >> > I found that he had one valid question that i would like to see answer= ed. >> > >> >> is the below allowed ? >> >> >> >> $bar =3D new Module \ Foo \ Bar(); >> >> >> >> I find it easier to read than with out the space. >> > >> > Since it looks pretty good with the spaces there. >> >> I don't see why it wouldn't be allowed. You can already do >> function_name (), or classname :: methodname >> (). >> This isn't python, the parser doesn't really care about the spaces :) > > It might work in some places, not always, consider > $class =3D '\ foo \ bar \ baz'; > new $class(); > ?> > > as the name is stored without spaces in the class table, not sure > whether it's worth parsing whitespaces in such cases... > > johannes > > >