On Mon, Feb 10, 2003 at 06:59:00AM -0800, [EMAIL PROTECTED] wrote:
 > It almost makes me wish there was a
 > namespace on CPAN dedicated to this kind of grouping, like "BIZ::" or
 > "CORP::" or "PRIV::" or something "official" like that.
Is this what you want?  `perldoc perlmodlib`

           If developing modules for private internal or project
           specific use, that will never be released to the pub-
           lic, then you should ensure that their names will not
           clash with any future public module. You can do this
           either by using the reserved Local::* category or by
           using a category name that includes an underscore like
           Foo_Corp::*.
Yes, that's what I was referring to earlier, but it's not quite the same thing. I could "bury" things in Local::, but I guess part of the issue is that these are modules I might like to actually release someday, if I ever feel they're good enough and might be useful to others, and I'd like to be able to do that without changing Local::Foo references everywhere I've referenced them.

I could see the top-level namespace becoming very polluted with Foo_Corp::* references, so I was wondering if there was any top-level namespace that could be used for grouping modules from particular sources (i.e. a small company's miscellaneous utilities). I could just use "SGT::*" hoping that my choice of acronym "SGT" remains unused at the top level, but if there were one level above that that was for all such groupings, the chance for collision would be greatly reduced.

In other words, something like Corp::SGT::*, so you have any number of second-tier "Corp" groupings, but only the one Corp:: top-level namespace entry.

I know this isn't a huge problem right now and there's plenty of room, but I always like to try to start off on the best possible footing so drastic change is less likely to be needed later.

Would a top-level Corp:: (or something else?) be a useful thing to suggest to the CPAN maintainer? Or is this just out in space and not needed?

Trying to be a good Perl/CPAN citizen,

Steve

--
Steve Linberg, Chief Goblin
Silicon Goblin Technologies
http://silicongoblin.com
Be kind. Remember, everyone you meet is fighting a hard battle.
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to