Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a common lisp package naming convention?

Tags:

I have created some of my own user packages and have run into a name clash.

In Java, the naming convention is to use your domain name in the package name: e.g. import com.example.somepackage;.

Are there any widely used package naming conventions for common lisp packages?

Regards,

Russell

like image 743
Russell Avatar asked Nov 16 '09 00:11

Russell


People also ask

What is the naming convention for packages?

Naming ConventionsPackage names are written in all lower case to avoid conflict with the names of classes or interfaces. Companies use their reversed Internet domain name to begin their package names—for example, com. example. mypackage for a package named mypackage created by a programmer at example.com .

What character you should not use naming a package?

Package names (both source and binary, see Package) must consist only of lower case letters ( a-z ), digits ( 0-9 ), plus ( + ) and minus ( - ) signs, and periods ( . ). They must be at least two characters long and must start with an alphanumeric character.

Can package name CamelCase?

Java uses CamelCase as a practice for writing names of methods, variables, classes, packages, and constants.

What are some conventions for naming identifiers?

There are some rules you have to follow for naming identifiers: The first character of the identifier must be a letter of the alphabet (upper or lowercase) or an underscore ('_'). The rest of the identifier name can consist of letters (upper or lowercase), underscores ('_') or digits (0-9).


1 Answers

The convention I use is to use a unique word: salza, skippy, zs3, etc. I don't really try to have a direct relationship to the library functionality. I try to avoid generic words that others might use like "zlib" or "zip" or "png".

Edi Weitz uses Frank Zappa-related words to name many of his packages: Hunchentoot, Drakma, etc.

Some people use Java-style org.foo.bar reversed domain naming.

So, the direct answer is no, there isn't a common, agreed-upon convention that everyone uses.

like image 141
Xach Avatar answered Sep 19 '22 06:09

Xach