Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33811 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89903 invoked by uid 1010); 6 Dec 2007 18:43:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 89888 invoked from network); 6 Dec 2007 18:43:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Dec 2007 18:43:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=michaelm@swplumb.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=michaelm@swplumb.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain swplumb.com from 209.181.81.165 cause and error) X-PHP-List-Original-Sender: michaelm@swplumb.com X-Host-Fingerprint: 209.181.81.165 mail.swplumb.com Windows XP Pro SP1, 2000 SP3 Received: from [209.181.81.165] ([209.181.81.165:2586] helo=swplumb.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/24-15167-7D248574 for ; Thu, 06 Dec 2007 13:43:36 -0500 Received: from michael-ms-computer.local [192.168.2.66] by swplumb.com with ESMTP (SMTPD-9.22) id A1D702C8; Thu, 06 Dec 2007 11:39:19 -0700 Message-ID: <475842CD.9080703@swplumb.com> Date: Thu, 06 Dec 2007 11:43:25 -0700 User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Roman Borschel CC: internals@lists.php.net References: <475713B2.4030802@iamjochem.com> <475719ED.8050306@zend.com> <200712052110.37023.larry@garfieldtech.com> <47576AEF.4030306@omegavortex.net> <5474E017-DF97-4B91-8FE0-7D6831E64F56@bitxtender.com> <47582DC0.2040004@zend.com> <16F02B8A-6394-4175-9473-C4967606386C@bitxtender.com> <4758362B.8070504@swplumb.com> <47583783.4010904@zend.com> <47583ABB.5050306@swplumb.com> <4F19E93C-A0A7-4CEB-BA50-FC483AA3FE82@gmx.net> In-Reply-To: <4F19E93C-A0A7-4CEB-BA50-FC483AA3FE82@gmx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Namespace From: michaelm@swplumb.com (Michael McGlothlin) > >> PHP already has the bad habit for many programmers to write totally >> unreadable code. It's darn near as bad as Perl in that area. No >> reason to make it worse. > And you really think not allowing multiple namespaces in a file will > improve that? I don't think so. These people will continue to write > unreadable code, no matter how many restrictions you put into the > language itself to prevent that. And as a negative side-effect the > others lose more and more flexibility of the language. > Apart from that multiple namespaces in a file always result in less > readable code. I don't see how it would be that much better with braces. Giving people rope to hang themselves with isn't really a good idea IMO. That's the difference in taking over somebody else's code from a Perl programmer or a Python programmer. You can have nasty Python code but it takes far more effort than with Perl code. PHP is somewhere in the middle in that it's inconsistent and has several features that make code a mess to read but it isn't as crazy about offering a dozen ways to do everything as Perl is. e.g. Why do we need multiple forms of the if statement? That's just messy and leads to bad code. Does it really help anybody program better? Multiple namespaces in a single file, without braces, would end up being a nightmare when taking over other people's code. Something that happens often in the work environment. -- Michael McGlothlin Southwest Plumbing Supply