Next: , Previous: , Up: SEL Coding Standards   [Contents][Index]


D.7 Packages

Only use packages which are explicitly included in your current package. E.g., calling cl-ppcre:foo just because cl-ppcre happens to be loaded in the lisp image every time you’ve run tests is not acceptable. Instead the :use option to defpackage should explicitly include the required package and if necessary :shadow and :shadowing-import-from should be used to limit the symbols imported. Alternately, when using package-inferred systems, the :import-from and :local-nicknames options to defpackage may be used to make dependencies explicit without using imports.