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

  • SEARCH
  • Home
  • 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 396163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:31:30+00:00 2026-05-12T16:31:30+00:00

I have a passing knowledge of other Lisps (particularly Scheme) from way back. Recently

  • 0

I have a passing knowledge of other Lisps (particularly Scheme) from way back. Recently I’ve been reading about Clojure. I see that it has both “symbols” and “keywords”. Symbols I’m familiar with, but not with keywords.

Do other Lisps have keywords? How are keywords different from symbols other than having different notation (ie: colons)?

  • 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-12T16:31:30+00:00Added an answer on May 12, 2026 at 4:31 pm

    Here’s the Clojure documentation for Keywords and Symbols.

    Keywords are symbolic identifiers that evaluate to themselves. They provide very fast equality tests…

    Symbols are identifiers that are normally used to refer to something else. They can be used in program forms to refer to function parameters, let bindings, class names and global vars…

    Keywords are generally used as lightweight “constant strings”, e.g. for the keys of a hash-map or the dispatch values of a multimethod. Symbols are generally used to name variable and functions and it’s less common to manipulate them as objects directly except in macros and such. But there’s nothing stopping you from using a symbol everywhere you use a keyword (if you don’t mind quoting them all the time).

    The easiest way to see the difference is to read Keyword.java and Symbol.java in the Clojure source. There are a few obvious implementation differences. For example a Symbol in Clojure can have metadata and a Keyword can’t.

    In addition to single-colon syntax, you can use a double-colon to make a namespace-qualified keyword.

    user> :foo
    :foo
    user> ::foo
    :user/foo
    

    Common Lisp has keywords, as do Ruby and other languages. They are slightly different in those languages of course. Some differences between Common Lisp keywords and Clojure keywords:

    1. Keywords in Clojure are not Symbols.

      user> (symbol? :foo)  
      false
      
    2. Keywords don’t belong to any namespace unless you specifically qualify them:

      user> (namespace :foo)
      nil
      user> (namespace ::foo)
      "user"
      

    (Thanks Rainer Joswig for giving me ideas of things to look at.)

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

Sidebar

Related Questions

I have been reading about the continuation passing style programming technique (C# 3.0 implementation).
I have very little knowledge of generics other than how to 'use them'. In
this one is of clumsy implementation type and I have small knowledge about MS
I have problem with passing an argument to my simple function in jQuery: When
I have a get method passing in an object of type Store to the
I have a problem with passing variables as reference in PHP. I want to
I have a problem when passing data in .getJSON. The reason for this is
I have web page which is passing a querystring parameter to page 2: <a
I have the following RSpec example which is passing: describe UsersController do it should
I have a stored procedure where i am passing a simple XML: '<Products><ProductId>1</ProductId><ProductId>2</ProductId></Products>' I

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.