Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40682 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53786 invoked from network); 25 Sep 2008 14:04:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Sep 2008 14:04:44 -0000 Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:42764] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/01-46875-B7A9BD84 for ; Thu, 25 Sep 2008 10:04:44 -0400 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id 460C01EBC01A; Thu, 25 Sep 2008 14:04:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t1971hkkI1F6; Thu, 25 Sep 2008 16:04:56 +0200 (CEST) Received: from [192.168.84.16] (office-zh.liip.ch [91.192.102.250]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id 3E6D71EBC019; Thu, 25 Sep 2008 16:04:55 +0200 (CEST) Cc: "Steph Fox" , "Kevin Waterson" , internals@lists.php.net, "Andi Gutmans" Message-ID: To: Guilherme Blanco In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Thu, 25 Sep 2008 16:04:34 +0200 References: <59.6C.35835.FB3F8D84@pb1.pair.com> <20080924065741.50a30448.kevin@phpro.org> <002701c91dd1$89dad480$3ffc1f3e@foxbox> X-Mailer: Apple Mail (2.929.2) Subject: Re: [PHP-DEV] true namespaces, yet another point of view From: mls@pooteeweet.org (Lukas Kahwe Smith) On 24.09.2008, at 01:17, Guilherme Blanco wrote: > For those that do not understand very well the explanation of jvlad... > > He's suggesting to change the class struct to be an scope struct, and > have a property that tells if it's a namespace or a class, and reuse > the implementation of class which already works very well. > The nested support is achieved afai understand through the Adjacency > List algorithm... can you confirm this to me? or just leave the organization of things to classes (with long class names with a nice prefix to prevent collissions) and leave it to class_alias() (and equivalent features for functions .. also with the option of a compile time aliasing) to handle the aliasing. this removes the need for namespaces and use statements, while making it possible to make class/function names short (that are long for organizational and collision prevention reasons). regards, Lukas Kahwe Smith mls@pooteeweet.org