(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?
Symbols in Lisp can serve several purposes, including, but not limited to:
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?
(apply #'square '(1 2 3 4))returns
There are other uses for symbols not mentioned here, but hopefully this gives you a good start.