Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62899 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74720 invoked from network); 7 Sep 2012 17:44:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Sep 2012 17:44:02 -0000 Authentication-Results: pb1.pair.com header.from=wfitch@meetme.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=wfitch@meetme.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain meetme.com designates 74.125.149.142 as permitted sender) X-PHP-List-Original-Sender: wfitch@meetme.com X-Host-Fingerprint: 74.125.149.142 na3sys009aog129.obsmtp.com Linux 2.5 (sometimes 2.4) (4) Received: from [74.125.149.142] ([74.125.149.142:39997] helo=na3sys009aog129.obsmtp.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/F1-65063-0623A405 for ; Fri, 07 Sep 2012 13:44:01 -0400 Received: from mail-yw0-f45.google.com ([209.85.213.45]) (using TLSv1) by na3sys009aob129.postini.com ([74.125.148.12]) with SMTP ID DSNKUEoyWPBZAFLoez5wS/7lSk1yl0BDy359@postini.com; Fri, 07 Sep 2012 10:44:01 PDT Received: by yhpp34 with SMTP id p34so701192yhp.18 for ; Fri, 07 Sep 2012 10:43:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=OeNAiMmAg7uyTEVQL4RLbte9S6rx1mvW8HdAqvqy9qA=; b=TIN1KoLf2gMrjzpX+JpZ/1hmipfXx4ZOMG+EkGbKqphnh0NzlpEOJ8YZGB8UPYStCh ZqrkEbkm/Lncr3rzaCACWcMOPTZczg4TFZ6HYCm3yFak23v9U71dUpwFrgs23DhBxdjh 2W+3fs64uKcKn1PvddFOHL6hLdfihRnj1kLRsF1hS7eUP3BxcxCsbF6OyySauQ6IPiY0 JGbiZvpmBW9ZxJXT5C1W3JL2/nB+feB2h+DFWXZ9BMfE3gSR7YerDMpbustLpThY9XZj NzAgQcr3TNOnv6m2SHJZu/astnd348OVpVmxFWLPkrbtckuJKFvfxKZw1fL6wkMb7RRC llxg== MIME-Version: 1.0 Received: by 10.220.220.203 with SMTP id hz11mr8164497vcb.50.1347039830866; Fri, 07 Sep 2012 10:43:50 -0700 (PDT) Sender: wfitch@meetme.com Received: by 10.58.132.161 with HTTP; Fri, 7 Sep 2012 10:43:50 -0700 (PDT) X-Originating-IP: [204.145.120.11] In-Reply-To: References: <504941BE.30102@sugarcrm.com> <50494740.6030205@sugarcrm.com> <504992B8.9050700@lsces.co.uk> Date: Fri, 7 Sep 2012 13:43:50 -0400 X-Google-Sender-Auth: xKR-KwBCeMmEFAldCbTnZyL_IwU Message-ID: To: Mark Cc: Lester Caine , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=14dae9d24d309dfcfb04c9202608 X-Gm-Message-State: ALoCoQkpcA3Z+nFpV7JFxw3wiT1V3JwV88ts16oYEaKCuli6lVveMByg3vqjoIpMeiGuBpu/Wxw/ Subject: Re: [PHP-DEV] Why are the PHP namespaces different compared to C++? From: willfitch@php.net (Will Fitch) --14dae9d24d309dfcfb04c9202608 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Sep 7, 2012 at 1:24 PM, Mark wrote: > On Fri, Sep 7, 2012 at 8:22 AM, Lester Caine wrote: > > Stas Malyshev wrote: > >> > >> Hi! > >> > >>> I wasn't assuming. I was outright making a factual statement. I never > >>> made any implications of the intellectual levels of those implementing > >>> the spec. I understand the RFC full well and know why the design is > >>> the way it is. I was answering the ops question. Please read what I > >>> said before you make your own assumptions. > >> > >> > >> Sorry, statements like "haphazard way", "never well designed", "it's a > >> mess", "they don't really resemble namespaces", "just some fancy magic", > >> etc. have nothing to do with facts. Actually, facts are exactly the > >> opposite - they were designed, were extensively discussed with > >> soliciting feedback from many stakeholders, and were implemented exactly > >> as planned. You may not like the way there were implemented, that's your > >> opinion (not a fact) and you are entitled to it. But you didn't limit > >> yourself to saying "I don't like them". You specifically said that they > >> were never well designed and haphazardly implemented. This is factually > >> false. > > > > > > Stas ... One thing to bear in mind is that even for those of us for whom > > English is our only language it is sometimes difficult to explain what we > > mean. Sherif's were perhaps a little 'provocative' but were an accurate > > reflection of his view on the results of implementing namespaces. It is a > > compromise rather than something that sits naturally in PHP? > > > > What a lot of newcomers need to understand is that PHP is NOT compiled, > so a > > heck of a lot of what they are used to just happening is physically > > impossible, and namespace is a good case in point. Personally I have yet > to > > see a good example of the use of namespaces in third party libraries, and > > like Sherif avoid them preferring simply so that while the code may be > more > > verbose, it's clear 5 years later what was intended :) A lot of the > current > > 'magic' makes it difficult to pick up and work with other peoples code > later > > on. > > Right, i have to correct you there. > You don't explicitly say it, but you do think that i'm a "newcommer". > That's far from the truth. I've been using PHP since 2001 and i > consider myself to be quite advanced in PHP usage. > > Back on the namespace topic. I won't judge on anything, but i know > namespaces from c++. I understand that PHP isn't a compiled language > and quite frankly that doesn't matter at all. What does matter is that > PHP uses the name: "namespace" which C++ obviously had earlier. > Naturally someone that knows both languaes (c++ and php) simply assume > that a namespace in php probably works the same as those in C++. If > that's not the case then it shouldn't even carry the "namespace" name. > > To me this namespace in php stuff just looks like and alias. So why > isn't it named as that: "alias"? I do not want to question the ones > that implemented namespaces in php, but i do think that the name > itself is at the very least confusing. > > Also, lets keep this discussion polite people. I'm not here to smash > toes. All i would like to know is the reasoning behind the above and > if there is any intention of changing the namespaces to be more c++ > like. > Also forgot to throw this in: http://marc.info/?r=1&q=b&l=php-internals&s=namespace+implementation&w=3. This topic was discussed over a long period of time, and if you truly want to understand the logic behind it, please read all the threads. > > Cheers, > Mark > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --14dae9d24d309dfcfb04c9202608--