Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26473 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46058 invoked by uid 1010); 10 Nov 2006 17:27:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 46043 invoked from network); 10 Nov 2006 17:27:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2006 17:27:27 -0000 Authentication-Results: pb1.pair.com header.from=iliaal@gmail.com; sender-id=pass; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=iliaal@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.162.207 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: iliaal@gmail.com X-Host-Fingerprint: 64.233.162.207 nz-out-0102.google.com Linux 2.4/2.6 Received: from [64.233.162.207] ([64.233.162.207:7319] helo=nz-out-0102.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 99/42-27611-D76B4554 for ; Fri, 10 Nov 2006 12:27:27 -0500 Received: by nz-out-0102.google.com with SMTP id o37so411647nzf for ; Fri, 10 Nov 2006 09:27:23 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=Jtu/ojU9AguRiEe8IVu2+JU/+wKe+/p/BzmRWB9iQBG8bIEjy8FVS3QmYUVsUreFeDaGVXNWT4mJ5Tegy5jCqPJCD7FBBewZlSfVDDKTL2kOLR7erj44iBc0GXTZ/2bpODAOEflRvse/JBZi6XkJovRizMrkrXrd1QEm8L6w/bk= Received: by 10.65.185.13 with SMTP id m13mr3628848qbp.1163179642887; Fri, 10 Nov 2006 09:27:22 -0800 (PST) Received: from ?192.168.1.6? ( [74.108.69.82]) by mx.google.com with ESMTP id e14sm827887qba.2006.11.10.09.27.22; Fri, 10 Nov 2006 09:27:22 -0800 (PST) In-Reply-To: <4554AE0D.4080600@caedmon.net> References: <4554AE0D.4080600@caedmon.net> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: Cc: internals Content-Transfer-Encoding: 7bit Date: Fri, 10 Nov 2006 12:27:13 -0500 To: Sean Coates X-Mailer: Apple Mail (2.752.3) Sender: Ilia Alshanetsky Subject: Re: [PHP-DEV] Namespaces in PHP 6 - ++$take From: ilia@prohost.org (Ilia Alshanetsky) On 10-Nov-06, at 11:51 AM, Sean Coates wrote: > The way I see it is that implementing namespaces is a technical > hurdle, > and the reasons we haven't jumped it are political, not technical. That's a bit of a circular logic no? There are indeed technical challenges to implementing namespaces, these reasons have been covered in previous discussions many times, since no adequate solution was devised they were never implemented. Once those issues are resolved or at the very least solutions are known, we can consider whether or not this is something that's truly needed. > Complacency: Most of the time, I'm happy to maintain the status quo in > PHP-land. However, the lack of namespaces is causing more trouble than > its absence is preventing. I think most PHP users would agree that > namespaces are a welcome addition, and without them, PHP suffers. > Let's > take this in small steps and implement optional userspace namespacing. > There's no need to dive head-first into this and make dramatic moves > like putting all core functions into a PHP namespace. Baby steps, > please. I think this is a bogus argument. In order to benefit from namespaces you need to use them, just like to benefit from containment through prefixing you need to prefix functions/classes/etc... Namespaces are not a magic bullet that will instantly make your problems go away and make your code better. If anything it'll make code complex and intertwined, introduce serious scope issue most people have not had to consider up until now and so on. It will without a doubt increase language complexity as well, which generally translates to a loss in performance. Ilia Alshanetsky