Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41088 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50704 invoked from network); 15 Oct 2008 19:17:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Oct 2008 19:17:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=dnfeitosa@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dnfeitosa@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.159 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: dnfeitosa@gmail.com X-Host-Fingerprint: 72.14.220.159 fg-out-1718.google.com Received: from [72.14.220.159] ([72.14.220.159:18954] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E5/72-39277-7B146F84 for ; Wed, 15 Oct 2008 15:17:12 -0400 Received: by fg-out-1718.google.com with SMTP id 16so41418fgg.23 for ; Wed, 15 Oct 2008 12:17:09 -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:references; bh=hM3Nsr/L/6hS0/NoTdf55DxP0LnlJoVND6tneyvjGvg=; b=Bz0SqGtE/IEHUgxJEDVB+eV02EN31D6uSSgOwHpahdDb6yxVz/aDPw/kvUN5cV6/PU 7XPlwyZx0Q719GjZ/9A78j9C1HFkx1rYdPby1VZDvnOgjmo1MQ+bl7ZwCA8j6HXR6GDY R10daVfJlcMoHYALyoSu7tmZpcDpWUjunrWsU= 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:references; b=Wiils45AtupcgSb3baSZmAsZs79GoASwpdKyu/EZ3msfAwCTadnIhXKMmLa1Ycl7jc ey7AddIJ6gCcNiMeY6bjrqfhSB8q4JHNz14gghX/DE8I6B/WdzKTNsgKUTYf+8zZhSjg Le9JFrCtCX0rFoA0cE0PruNzUPGasBoUnWMD8= Received: by 10.181.51.14 with SMTP id d14mr875471bkk.4.1224098228962; Wed, 15 Oct 2008 12:17:08 -0700 (PDT) Received: by 10.181.27.11 with HTTP; Wed, 15 Oct 2008 12:17:08 -0700 (PDT) Message-ID: <2671cb7a0810151217k5b83236el64652827eba8a5e1@mail.gmail.com> Date: Wed, 15 Oct 2008 16:17:08 -0300 To: "Guilherme Blanco" Cc: "Ryan Panning" , internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_75949_17638723.1224098228929" References: <696583.1217.qm@web707.biz.mail.mud.yahoo.com> <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: dnfeitosa@gmail.com ("Diego Feitosa") ------=_Part_75949_17638723.1224098228929 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, Oct 15, 2008 at 3:49 PM, Guilherme Blanco wrote: > 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 neve= r > >> 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 sol= id > > (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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > Or even use my::cool::namespace#GregsNamespaceElement I couldn't understand why Greg's proposal wasn't accepted... --=20 Diego Feitosa www.dnfeitosa.com Caelum - Ensino e Solu=E7=F5es em Java diego.feitosa@caelum.com.br www.caelum.com.br ------=_Part_75949_17638723.1224098228929--