Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42850 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64412 invoked from network); 26 Jan 2009 13:44:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2009 13:44:54 -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 209.85.132.243 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 209.85.132.243 an-out-0708.google.com Received: from [209.85.132.243] ([209.85.132.243:20719] helo=an-out-0708.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 79/20-62571-55EBD794 for ; Mon, 26 Jan 2009 08:44:54 -0500 Received: by an-out-0708.google.com with SMTP id c2so919443anc.38 for ; Mon, 26 Jan 2009 05:44:51 -0800 (PST) Received: by 10.100.119.18 with SMTP id r18mr2763587anc.65.1232977491225; Mon, 26 Jan 2009 05:44:51 -0800 (PST) Received: from ?192.168.1.46? (pool-71-125-246-110.nycmny.east.verizon.net [71.125.246.110]) by mx.google.com with ESMTPS id b14sm16156398ana.36.2009.01.26.05.44.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Jan 2009 05:44:50 -0800 (PST) Message-ID: <497DBE50.40304@chiaraquartet.net> Date: Mon, 26 Jan 2009 07:44:48 -0600 User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070807) MIME-Version: 1.0 To: Alain Williams CC: PHP internals References: <497A4138.2000707@gravitonic.com> <7f3ed2c30901231537j35d3b4c2i945de77a6a14dba0@mail.gmail.com> <497A578B.4080208@gravitonic.com> <3959E78B-13FC-437E-86BE-5B9EAF575BD0@pooteeweet.org> <497DA729.8070206@cschneid.com> <20090126122728.GE7838@mint.phcomp.co.uk> In-Reply-To: <20090126122728.GE7838@mint.phcomp.co.uk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Reserved namespaces From: greg@chiaraquartet.net (Greg Beaver) Alain Williams wrote: > On Mon, Jan 26, 2009 at 01:06:01PM +0100, Christian Schneider wrote: >> Things gettings reserved at a later stage (like originally keywords, now >> namespaces) can lead to a big deal of frustration. Therefore I think it >> is crucial to have a clear naming guide now. > > +1 > >> And these guidelines have to be noticed by everybody who starts to use >> namespaces so they have to be placed prominently. > >> Personally I'd even prefer them to be enforced in code so they can't be >> missed. > > No: > * there are occasional times when rules might want to be broken > * to enforce it just makes the language/compiler bigger > * If it is advertised and someone breaks the rules - then it is their problem. > >> Removing restrictions later on causes less trouble so I wouldn't mind >> too much if a couple of namespaces (or namespace prefixes) are reserved >> but never used. > > As I suggested, do it the way that perl does: it is keyed off the case of the characters. > So, the reserved spaces could be one of: > > 1) entirely lower case (or perhaps just start with lower case) > 2) entirely upper case People, can we all agree to remember that PHP is case-insensitive with the exception of variable names and a few constants? Thanks, Greg