Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41087 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47350 invoked from network); 15 Oct 2008 18:49:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Oct 2008 18:49:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.92.27 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 74.125.92.27 qw-out-2122.google.com Received: from [74.125.92.27] ([74.125.92.27:12618] helo=qw-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A7/C1-39277-83B36F84 for ; Wed, 15 Oct 2008 14:49:28 -0400 Received: by qw-out-2122.google.com with SMTP id 8so796105qwh.59 for ; Wed, 15 Oct 2008 11:49:25 -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:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ezJkhQCfCecRIW7+p9Ci9Dqeg8KdBJvCTyt/cMXWlVE=; b=NffA9qTuv9MRDuv7xFK/TIK669xgM1zdkGYd/I0pPUmnSoEUSJ4Co+5+J96FOiif7d d7DlfhLA7McymmzE93ipN8/3/s7QKCOcrJ7jt08ZEPIGrAPvwpmzgoy8f4w8z8ppZeCr eMpxLNFAktV4PrkLWrlJ5KZSmrFeXQgwl0eSg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=DuXiMTOXnyUtBVdEtRcUxCXXDqnhJKJFSOld/35eTfC684xGzXhA9EpGyWAnTESVcx 2YWr+53K8BnuYR/FLAbyj70FgqfTW+1RehavRMWa5pCIkx90rDdcnKwJphP400wg+fx/ iquu0LypygVWSpPjQElG4hzV1o6Vlw3CxWbG0= Received: by 10.214.241.19 with SMTP id o19mr1494384qah.31.1224096565819; Wed, 15 Oct 2008 11:49:25 -0700 (PDT) Received: by 10.214.78.6 with HTTP; Wed, 15 Oct 2008 11:49:25 -0700 (PDT) Message-ID: Date: Wed, 15 Oct 2008 16:49:25 -0200 To: "Ryan Panning" Cc: internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <696583.1217.qm@web707.biz.mail.mud.yahoo.com> <00e101c92e3c$d5194b90$3ffc1f3e@foxbox> <48F5075C.2050807@zend.com> <31748C8A-66EA-4A27-9E27-486A4C398F5D@pooteeweet.org> <018401c92e41$ef89b0a0$3ffc1f3e@foxbox> <698DE66518E7CA45812BD18E807866CE021B6406@us-ex1.zend.net> <7f3ed2c30810150506p426a5e84wfea92d3a5d78960c@mail.gmail.com> <1F.01.19544.F55F5F84@pb1.pair.com> Subject: Re: [PHP-DEV] namespaces and alpha3 From: guilhermeblanco@gmail.com ("Guilherme Blanco") If all issues are evolved to reusing same operator, :: ... Why is it so complicated to change the separator and get everything supported? Is that too hard? +3 for Liz option #3. Long live :::! []s, On Wed, Oct 15, 2008 at 4:41 PM, Ryan Panning wrote: > Elizabeth M Smith wrote: > >> >> This can be solved in three ways. >> >> 1. Greg's "leaf" solution >> foo::bar->baz(); - namespace foo::bar, function baz >> foo->bar::baz(); - namespace foo, static method bar::baz >> >> Personally I don't like this, get confusing even if we pick some weird >> operator like :> >> >> 2. Don't allow functions or constants in namespaces >> >> Simplest solution but appears to piss off all the people who have never >> actually used the current implementation or hate OO on principle >> >> 3. Steph's idea - Change the separator (I vote ':::' - easy to do, >> similar to what we have already) >> foo:::bar:::baz(); - namespace foo:::bar function baz >> foo:::bar::baz(); - namespace foo, static method bar::baz >> > > Honestly, either the tough choices must be made soon or namespaces has to be > held until 6. IMO > > From my experience using namespaces #1 AND #2 would make namespaces solid > (again IMO). The only thing for #1 is that I wouldn't want to see -> reused, > as others have mentioned. Maybe :> or something else. Same for #3, :: just > causes confusion. I don't really care what it's changed to, ::: is fine, it > just cannot be :: > > Take a look at what autoload gets when an undeclared namespace, class, > whatever is called. That will give you the idea on how autoload doesn't > really know what is being called. With the change in #3 and addition of #1, > it would be possible to know what is being called. > > > Seriously, why is changing :: seem like such a problem? > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Guilherme Blanco - Web Developer CBC - Certified Bindows Consultant Cell Phone: +55 (16) 9166-6902 MSN: guilhermeblanco@hotmail.com URL: http://blog.bisna.com Rio de Janeiro - RJ/Brazil