Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43336 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71398 invoked from network); 13 Mar 2009 08:42:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2009 08:42:50 -0000 Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:53556] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FD/C2-56331-88C1AB94 for ; Fri, 13 Mar 2009 03:42:49 -0500 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id 075DD1EBC019; Fri, 13 Mar 2009 08:44:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cOk6cD5np2tV; Fri, 13 Mar 2009 09:44:40 +0100 (CET) Received: from [10.161.100.162] (gprs37.swisscom-mobile.ch [193.247.250.37]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id B4F691EBC013; Fri, 13 Mar 2009 09:44:38 +0100 (CET) Cc: Christian Schneider , PHP internals Message-ID: <6265D75C-A493-43EA-8CE5-D1DA4F0C0E46@pooteeweet.org> To: Andrei Zmievski In-Reply-To: <49B99D30.2060803@gravitonic.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Fri, 13 Mar 2009 09:42:04 +0100 References: <497A4138.2000707@gravitonic.com> <7f3ed2c30901231537j35d3b4c2i945de77a6a14dba0@mail.gmail.com> <497A578B.4080208@gravitonic.com> <3959E78B-13FC-437E-86BE-5B9EAF575BD0@pooteeweet.org> <497DA729.8070206@cschneid.com> <49B99D30.2060803@gravitonic.com> X-Mailer: Apple Mail (2.930.3) Subject: Re: [PHP-DEV] Reserved namespaces From: mls@pooteeweet.org (Lukas Kahwe Smith) On 13.03.2009, at 00:39, Andrei Zmievski wrote: > 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. >> 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. >> 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. > > Just a gentle reminder to make sure we don't miss this.. Well cant we just use the class naming guide? As in put a prefix in your namespace names, do not use an extension name (or something that could likely become an extension name) as your prefix. Then again for classes we say that the prefix should be prepended with an underscore as the separator as the ultimate protection. That of course does not seem feasible for namespaces. regards, Lukas Kahwe Smith mls@pooteeweet.org