Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41471 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77109 invoked from network); 27 Oct 2008 17:28:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Oct 2008 17:28:32 -0000 Authentication-Results: pb1.pair.com header.from=Johannes.Schlueter@Sun.COM; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 192.18.6.24 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 192.18.6.24 gmp-eb-inf-2.sun.com Solaris 10 (beta) Received: from [192.18.6.24] ([192.18.6.24:49965] helo=gmp-eb-inf-2.sun.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 76/B4-34199-E3AF5094 for ; Mon, 27 Oct 2008 12:28:31 -0500 Received: from fe-emea-10.sun.com (gmp-eb-lb-1-fe3.eu.sun.com [192.18.6.10]) by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m9RHSR8u029427 for ; Mon, 27 Oct 2008 17:28:28 GMT Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0K9E00B01R6C0200@fe-emea-10.sun.com> (original mail from johannes@php.net) for internals@lists.php.net; Mon, 27 Oct 2008 17:28:27 +0000 (GMT) Received: from [192.168.1.103] ([93.104.102.72]) by fe-emea-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0K9E009S3R7EXGD0@fe-emea-10.sun.com>; Mon, 27 Oct 2008 17:28:27 +0000 (GMT) Date: Mon, 27 Oct 2008 18:28:20 +0100 In-reply-to: <7f3ed2c30810270953m2799d782j51042504fb6d3b98@mail.gmail.com> Sender: Johannes.Schlueter@Sun.COM To: Hannes Magnusson Cc: =?ISO-8859-1?Q?=D3lafur?= Waage , internals@lists.php.net Message-ID: <1225128501.6991.22.camel@goldfinger.johannes.nop> MIME-version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <64B4CECA-980F-4738-8B05-E7935741D7BB@pooteeweet.org> <322434106.20080827234712@marcus-boerger.de> <1219885057.5961.13.camel@pena> <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> Subject: Re: [PHP-DEV] alpha2 scheduled From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Mon, 2008-10-27 at 17:53 +0100, Hannes Magnusson wrote: > On Mon, Oct 27, 2008 at 16:50, Ólafur Waage wrote: > > I found that he had one valid question that i would like to see answered. > > > >> is the below allowed ? > >> > >> $bar = 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 as the name is stored without spaces in the class table, not sure whether it's worth parsing whitespaces in such cases... johannes