Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6776371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:01:14+00:00 2026-05-26T16:01:14+00:00

In Common Lisp package definition, what is the difference between (defpackage #:foo (:use :cl)

  • 0

In Common Lisp package definition, what is the difference between

(defpackage #:foo
    (:use :cl)
    (:export #:bar
        #:baz))

(in-package #:foo)

and

(defpackage :foo
    (:use :cl)
    (:export :bar
       :baz))

(in-package :foo)

I mean. When I have to use the “#” character? All these symbols are uninternerd, right?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:01:14+00:00Added an answer on May 26, 2026 at 4:01 pm

    :foo is the syntax for a keyword symbol, and #:foo is the syntax for an uninterned symbol. When a symbol is used primarily to get at the string that is its name (as in defpackage and in-package), I prefer to use uninterned symbols.

    Here are the other options:

    • use a keyword symbol; I don’t like how this interns keyword symbols that show up in apropos and other places
    • use a string; I don’t like how this gratuitously breaks Allegro’s “modern” mode
    • use a plain symbol; I don’t like how this both interns a symbol, and how it interns it in a potentially random package

    Which style you or anyone else uses is a matter of taste.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Common Lisp you can do this: (defun foo (bar &key baz quux) (list
I have been writing Common Lisp macros, so Scheme's R5Rs macros are a bit
Common LISP and Emacs LISP have the atom type predicate. Scheme and Clojure don't
In Common Lisp you use the (null x) function to check for empty lists
I have the following Common Lisp code: (defun micro-read-eval-print () (format t Micro >
In common lisp, we can use the remove function. It seems there is no
Are there any differences between what in Common Lisp you'd call an atom, and
I have the following Common Lisp function: (defun get-positions (marker) (let ((result nil)) (dotimes
Common Lisp guys have their CL-WHO , which makes HTML templating integrated with the
I am a C++ programmer trying to learn Common Lisp. I have looked at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.