Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41209 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49631 invoked from network); 17 Oct 2008 10:53:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2008 10:53:46 -0000 X-Host-Fingerprint: 195.11.217.66 unknown Received: from [195.11.217.66] ([195.11.217.66:29007] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C4/B5-12818-9BE68F84 for ; Fri, 17 Oct 2008 06:53:46 -0400 To: internals@lists.php.net,steph@php.net Message-ID: <48F86EB4.5080308@kraya.co.uk> Date: Fri, 17 Oct 2008 11:53:40 +0100 Reply-To: nathan@kraya.co.uk Organization: Kraya - Web Development in Edinburgh User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 195.11.217.66 Subject: UltraSimple Namespace Solution From: nathan@kraya.co.uk (Nathan Rixham) *The Problem (as defined by Greg):* foo.php: main.php: *A Simpler Solution* Force userland / general naming conventions in PHP. # namespaces are always lowercase # functions are always lowercase # classes are always CamelCaps with initial uppercase letter enforced thus: //this is always the function two in namespace one::step one::step::two(); //this is always the method two of class step in namespace one one::Step::two(); thoughts, opinions, reasons why it wouldn't work? regards, nathan