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 3979990
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:14:15+00:00 2026-05-20T05:14:15+00:00

(message %s ‘abc) (message %s abc) I found that both the former expression will

  • 0
(message "%s" 'abc)
(message "%s" "abc")

I found that both the former expression will be the same result( in emacs ).
Although I know this is not really a property example to show my question.

Could you explain more about what’s the exact meaning for a quoted symbol?
And the what does the quoted symbol return? A string representation of a variable name or something else?

  • 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-20T05:14:16+00:00Added an answer on May 20, 2026 at 5:14 am

    Symbols in Lisp can serve several purposes, including, but not limited to:

    • a simple data type for representing anything atomic that the other simple data types cannot or should not — thus similar to enumerations in C-family languages. For instance, a function MakeWidget may take an argument Size, the possible values of which are ‘small, ‘medium, and ‘large. Symbols used this way need not be declared, though there are simple means to limit the range of values if need be.
    • variable name
    • function name

    A quoted symbol returns the symbol itself.

    A symbol can be printed, and, as as you saw, prints just like a string.

    So, why would you want to use a symbol when you can just as easily use a string?

    • the name of a symbol doesn’t change, so it uses less memory than a string
    • a symbol can be used to store a reference to a function you want to call in a non-trivial way. A typical example is applying a function to a list — e.g., if square is a properly defined function, then:

    (apply #'square '(1 2 3 4))

    returns

    (1 4 9 16)
    

    There are other uses for symbols not mentioned here, but hopefully this gives you a good start.

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

Sidebar

Related Questions

Error message: The type 'GoogleMapProject_Behaviors:ZoomBehavior' was not found. Verify that you are not missing
message ------------ 01d,2s3,1wee (nvarchar) 01,32,32154, (nvarchar) df,g,d, (nvarchar) dd,12,2 (nvarchar) I dont know how
Error message doesn't display on mysql connect failure if( ! $this->remote_connection_id = @mysql_connect($vars['hostname'], $vars['username'],
I have this error message: Msg 8134, Level 16, State 1, Line 1 Divide
I have a MDB (Message driven bean) that receives messages with String which represent
Suppose I have some Message class like the following. (This is a made-up class
I saved the whole message as xx.eml, but some mails body tells that mail
My message.properties contains this by default: typeMismatch.java.lang.Double=Property {0} must be a valid number Placeholder
For message-oriented middleware that does not consistently support priority messages (such as AMQP) what
Message has_many user_messages. It has two. 1 UserMessage will have the sender as user_id

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.