Re: Reserved namespaces
| From: | Alain Williams | Date: | Sat, 24 Jan 2009 00:07:51 +0000 |
| Subject: | Re: Reserved namespaces | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42808@lists.php.net to get a copy of this message | ||
On Fri, Jan 23, 2009 at 03:58:22PM -0800, Andrei Zmievski wrote:
> Lukas Kahwe Smith wrote:
> >I think the decision was to not yet bother with reserving namespaces or
> >starting to namespace-ify extensions. We might however want to put out a
> >naming guide for namespaces.
>
> I agree. Whether the error is raised or not on reserved namespaces can be
> done later, but we should explicitly indicate that certain namespaces are
> off-limits.
Could take the simple convention that exists in perl with modules.
Module names begin with a capital letter, pragmase are lower case, thus you have:
use strict;
use IO::File
Nobody is made to do anything, however you loose the option to complain if your
namespace starts with a lower case character.
--
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
Past chairman of UKUUG: http://www.ukuug.org/
#include <std_disclaimer.h>