Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33758 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29234 invoked by uid 1010); 5 Dec 2007 18:49:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 29219 invoked from network); 5 Dec 2007 18:49:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2007 18:49:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=dohpaz@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dohpaz@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.184.224 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: dohpaz@gmail.com X-Host-Fingerprint: 64.233.184.224 wr-out-0506.google.com Linux 2.4/2.6 Received: from [64.233.184.224] ([64.233.184.224:17709] helo=wr-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 20/1E-20707-1D2F6574 for ; Wed, 05 Dec 2007 13:49:53 -0500 Received: by wr-out-0506.google.com with SMTP id 55so3163030wri for ; Wed, 05 Dec 2007 10:49:50 -0800 (PST) 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=8Xz692Lz/l5foE590ojTWVx+N3w4f0BnMubmP1qngjg=; b=SooniEpVKxVJc5eyMVT5PaFyvK/BwBk6seHpTKBxwtKaG+k1Vf9hPTz5L7c6dE8jAVNdj13Is1Auzb5ewYOzlADkOWluPYAOrB+06XyLVzj67KCEqZGBzhetfQ4Jorz8c5WG+fm3CkpxKzr2M/TZsZYFuHv4hOMi6LfowRBwqAw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=JVURvlgrmvaMcHjwpz0oJ/I3wYOuff2/afJGSHV3hZBv5G0LsQSoS2m2j/dKEENCUremla21T7MWMSZiDYf0/MNpkJlEFro5O4e2+1/Cxp/G5j5se96keT43mXyneyU5LWGu26bFrymnXAMP6S9sOVp/SsuetIo3jMnRglga5TY= Received: by 10.142.242.8 with SMTP id p8mr1178098wfh.1196880589331; Wed, 05 Dec 2007 10:49:49 -0800 (PST) Received: by 10.142.180.15 with HTTP; Wed, 5 Dec 2007 10:49:49 -0800 (PST) Message-ID: Date: Wed, 5 Dec 2007 13:49:49 -0500 To: "Stanislav Malyshev" Cc: "Derick Rethans" , "PHP Developers Mailing List" In-Reply-To: <4756E5D7.30802@zend.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2432_5768460.1196880589307" References: <4756E5D7.30802@zend.com> Subject: Re: [PHP-DEV] Namespace From: dohpaz@gmail.com ("Ken Stanley") ------=_Part_2432_5768460.1196880589307 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Dec 5, 2007 12:54 PM, Stanislav Malyshev wrote: > (I don't know how to make it more clear - should I > use blinking text, flash graphics and pictures of dancing girls/boys in > bikinis?) Stas, that is immature, rude, and completely uncalled for; fine, you are frustrated with our questions and arguments. Comments like this creates frustration on our part with the developers. Friction like this could easily be avoided with a little more tact and diplomacy. Now, about those pictures of those dancing girls in bikinis.... (that last part, FYI, was for brevity). > - it is *NOT* to allow you shoving all your library classes > into global space and in some magic way make same names mean different > classes by telepathically reading your mind. The purpose of namespaces > is to make working with long names - necessary to avoid collisions - > easier, by enabling not always use the whole long name but sometimes > only a part of it. > I understand this point very well Stas. If I misinterpreted how namespaces work with names that exist both in the namespace and the global space, then I sincerely apologize to you and anybody else who got offended by my misinformation. I, like you, am simply concerned with people misusing this powerful feature in a way that causes more problems for me as a developer and maintainer of PHP code. > > Globbing of this nature, in my humbled opinion, would not be the best > idea > > because of the high potential of problems. But, in the same respect, > with > > That's *exactly* why it was dropped. More precisely, it is one of the > reasons - other being it would break lookup performance and bytecode > caches. FWIW, I think that was a good decision. :) > > > I think this is a huge issue, if only for consistency with other > constructs > > of the language. There are already three different ways to write an > > Guys, really, how many times should we beat this particular dead horse? As many times as it takes. Seriously though, I see a lot of posts here that have people asking for braces. To be fair, I see equally as many posts asking to not have them, and then there are the ones that don't care either way. So really, I don't think this issue is completely dead. But, that is just my personal opinion. I concede this point as an agreement to disagree. :) > > > > The only difference, on the surface, that I see with namespaces vs. > standard > > prefixing is that namespaces has a new keyword and changes the separator > > from an underscore to the double colon. Beyond that, without the other > > Well, I think reading the actual docs would help to see more. Besides > that, namespaces allow aliasing of prefixes and automatic prefixing. > You are right. Despite my continued following of this list, I failed to realize that the PHP docs included information on namespaces. > > > For what it's worth, I would have to completely agree with Derick on > this > > issue. It just seems that namespaces could be made to do much more than > it > > already does. > > Leaving braces aside (please!), what capabilities that were not > discussed before do you need? I know you don't like to hear this Stas, but braces are pretty important -- at the very least, to me. I also believe that having multiple namespaces in a single file would be very beneficial for the many various reasons discussed on this list. Other than that, I truly feel that the addition of namespaces is a great addition to the language. Please do not construe my e-mail in a negative tone. That was not my intention at all. I do not have the attitude of "take it or leave it". I just felt compelled to offer my feelings on the matter as just another voice from userland. :) > > -- > Stanislav Malyshev, Zend Software Architect > stas@zend.com http://www.zend.com/ > (408)253-8829 MSN: stas@zend.com > -- It looked like something resembling white marble, which was probably what it was: something resembling white marble. -- Douglas Adams, "The Hitchhikers Guide to the Galaxy" ------=_Part_2432_5768460.1196880589307--