Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62897 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68850 invoked from network); 7 Sep 2012 17:31:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Sep 2012 17:31:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 64.22.89.134 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 64.22.89.134 oxmail.registrar-servers.com Received: from [64.22.89.134] ([64.22.89.134:47716] helo=oxmail.registrar-servers.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/90-65063-D6F2A405 for ; Fri, 07 Sep 2012 13:31:26 -0400 Received: from [192.168.0.200] (5ad3285b.bb.sky.com [90.211.40.91]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by oxmail.registrar-servers.com (Postfix) with ESMTPSA id 9E9E8F002F; Fri, 7 Sep 2012 13:31:21 -0400 (EDT) Message-ID: <504A2F43.9010500@ajf.me> Date: Fri, 07 Sep 2012 18:30:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: Mark CC: Lester Caine , "internals@lists.php.net" References: <504941BE.30102@sugarcrm.com> <50494740.6030205@sugarcrm.com> <504992B8.9050700@lsces.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Why are the PHP namespaces different compared to C++? From: ajf@ajf.me (Andrew Faulds) On 07/09/12 18:24, Mark wrote: > 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. Namespaces, like in C++, mean you can reference classes etc from other modules without name conflicts, yet not have to type gl_ or zend_ or whatever in front of every single name when writing code within that module, and that's about it. Yes, the behaviour is different, but they are still namespaces. Them being different from C++'s shouldn't be a surprise, C++ is quite a different language. -- Andrew Faulds http://ajf.me/