At 22:52 02.09.2002, Randy Kobes wrote: >On Mon, 2 Sep 2002, Per Einar Ellefsen wrote: > > > At 20:52 02.09.2002, Randy Kobes wrote: >[ ... ] > > >One of the downsides of an Apache::Util::* name (and also some > > >others in the suggested namespace categorization) is that there's > > >already an Apache::Util in modperl-2. Although it's not a rule, > > >there's a typical expectation that module X::Y::Z has a > > >relationship of some sort to module X::Y. > > > > And there is already a Apache::Util in 1.0. I don't believe there will be > > many misunderstandings, as they are all utility modules after all. It > might > > even help, because then people will group all Util:: modules together with > > Apache::Util mentally. > >I was thinking more of the hierarchy, not of the functional >grouping. The convention of X::Y::Z being related to X::Y by, eg, >using or requiring it or through inheritance is widespread (and >is generally used at the top-level Apache::* namespace). One >might similarly expect an Apache::Util::* module to require in >some way Apache::Util, which if not true, could be confusing. >Although this isn't a forced convention, it's so common that I >think breaking it shouldn't be officially encouraged.
Not so according to the module list: "e) The perhaps most interesting namespace protection is provided by the perl symbol table itself. A namespace Foo:: is just a package name and its relationship to a namespace Foo::Bar:: is not predetermined whatsoever. The two namespaces can be closely or loosely related or not related at all, but what's most important, they can be writen by different authors who may work rather independently from each other. So if you have registered any namespace, it does not mean that you own the whole namespace tree that starts there. If you are registered as the contact for Foo::Bar, you are not necessarily also associated with Foo::Bar::Baz. " See http://www.cpan.org/modules/00modlist.long.html#ID5_NamespaceCo -- Per Einar Ellefsen [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
