Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41493 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69366 invoked from network); 28 Oct 2008 00:21:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Oct 2008 00:21:38 -0000 Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 208.83.222.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 208.83.222.18 unknown Linux 2.6 Received: from [208.83.222.18] ([208.83.222.18:41814] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/27-34199-11B56094 for ; Mon, 27 Oct 2008 19:21:37 -0500 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id 18515C11036; Mon, 27 Oct 2008 17:21:15 -0700 (MST) Received: from Greg-Beavers-monster.local (c-24-63-32-181.hsd1.ma.comcast.net [24.63.32.181]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id DF17BC11031; Mon, 27 Oct 2008 17:21:13 -0700 (MST) Message-ID: <49065B0C.2070107@chiaraquartet.net> Date: Mon, 27 Oct 2008 19:21:32 -0500 User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070807) MIME-Version: 1.0 To: Josh Davis CC: Stanislav Malyshev , Rodrigo Saboya , internals@lists.php.net References: <49048EC1.9060908@chiaraquartet.net> <4905EDA9.9050301@zend.com> <11c607a60810271049y419c252q7e21cde9221f1996@mail.gmail.com> <490600CD.5020207@zend.com> <11c607a60810271252r4bedeea8q59ce5423891d8e59@mail.gmail.com> <49061E01.8060503@zend.com> <11c607a60810271344i1a8cf53fl149447ad2f687f99@mail.gmail.com> <490628DB.9060209@zend.com> <11c607a60810271422l68949427pe31786275b0b152c@mail.gmail.com> In-Reply-To: <11c607a60810271422l68949427pe31786275b0b152c@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [PHP-DEV] namespace separator and whining From: greg@chiaraquartet.net (Greg Beaver) Josh Davis wrote: > 2008/10/27 Stanislav Malyshev : > >> 1) check for namespaced\classname >> 2) try to autoload namespaced\classname >> 3) fail > > Ok, that makes some sense wrt your position, which I originally > interpreted as namespace/internal/autoload. > > You want to force users to use the full name at all times. IOW, you > want to sacrifice convenience for performance. On the upside, no > ambiguity whatsoever. "new Foo" is always a namespaced class. The > downside is that it makes it harder for users to copy/paste code from > current tutorials and examples, they will have to fix the class names. > Also, a few people will probably regret not being able to > auto-magically override some internal classes (e.g. override PDO to > log queries and what not) and it will probably increase the amount of > complaints about peppering one's code with backslashes. Greg