Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33649 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76175 invoked by uid 1010); 4 Dec 2007 16:31:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76160 invoked from network); 4 Dec 2007 16:31:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Dec 2007 16:31:17 -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 38.99.98.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 38.99.98.18 beast.bluga.net Linux 2.6 Received: from [38.99.98.18] ([38.99.98.18:48929] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AF/F7-09439-4D085574 for ; Tue, 04 Dec 2007 11:31:17 -0500 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id 63F46C0E28B; Tue, 4 Dec 2007 09:31:14 -0700 (MST) Received: from [192.168.0.106] (CPE-76-84-15-179.neb.res.rr.com [76.84.15.179]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id 03D09C0E282; Tue, 4 Dec 2007 09:31:13 -0700 (MST) Message-ID: <475580D5.1010903@chiaraquartet.net> Date: Tue, 04 Dec 2007 10:31:17 -0600 User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: Martin Alterisio CC: internals Mailing List References: <4731278C.8020301@chiaraquartet.net> <52dbac0f0712040809v64da917cic9aa803f9800f49b@mail.gmail.com> In-Reply-To: <52dbac0f0712040809v64da917cic9aa803f9800f49b@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] ignored patches From: greg@chiaraquartet.net (Gregory Beaver) Martin Alterisio wrote: > Sorry to step in uninvited to this discussion, I have some doubts about all > this, and I'll really appreciate if someone more knowledgeable could > enlighten my ignorance. The doubts I have are as follows: > > 1) Why is performance relevant to whether namespaces are implemented one per > file or many per file? Because there is a performance difference between code in separate files and the same code in a single file. The current namespace implementation does not allow more than 1 namespace per file. These 2 files: file1.php: file2.php: can be combined into this file: Simply by cut/paste and PHP will work. These two files: file2.php: when combined into: result in a parse error. > 2) I was under the impression namespaces were introduced to improve code > maintainability. Was I wrong? You are right. On the flip side, if you can't use your maintainable code because it is slow as molasses, that is a problem. Greg