Re: Package naming conventions
Pascal Bourguignon <[email protected]>
| Newsgroups | gmane.lisp.cclan.general |
|---|---|
| Organization | InformatiMago. |
| Message-ID | <[email protected]> |
Nikodemus Siivola writes:
> On Wed, Aug 20, 2003 at 03:14:54PM +0200, Pascal Bourguignon wrote:
>
> > One can add/delete nicknames when loading a package if shorter names
> > are wanted. For example, I have such provision in my DECLARE-PACKAGE
> > macro:
>
> My bad. While I said package I *ment* CCLAN module (or whatever the
> correct term is).
>
> It is my understanding that there is no guarantee that CCLAN module
> "foo" is contained within (or even contains) a Common Lisp package
> named "FOO".
Would you have a valid reason not to use common-lisp packages to
implement your modules?
Note that my naming scheme, (in fact a subset of the hierarchical
packages of Franz) allow to create as well hierachical packages. That
is, if one of the cclan modules needs to be implemented over several
common-lisp packages, there's no problem.
net.sourceforge.cclan.web-server
could be a cclan "module" containing the following "pure packages":
net.sourceforge.cclan.web-server.http
net.sourceforge.cclan.web-server.html
net.sourceforge.cclan.web-server.cgi
net.sourceforge.cclan.web-server.files
net.sourceforge.cclan.web-server.files.directories
net.sourceforge.cclan.web-server.processes
The "contain" relation is a kind of "use" relation. So when you
download the net.sourceforge.cclan.web-server package/module, since it
uses the contained package, they are downloaded as well.
This is a valid question: should all published code be encapsulated
into a package?
My answer is yes. Obviously when your code consists only of one or
very few functions, it may seem useless to put them in a package. But
I guess most of the cclan modules won't be trivial, so there will be
need for packages in any case.
--
__Pascal_Bourguignon__ http://www.informatimago.com/
----------------------------------------------------------------------
Do not adjust your mind, there is a fault in reality.
-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code4