by rnhmjoj · 9y ago · 0 comments
'foo
(quote foo)
'(1 2 3)
(quote (1 2 3))
It basically does not evaluate its arguments but returns whatever it is. So instead of the value of foo, it the symbol foo. The list example does not evaluate it either, it would normally try to apply the first element as a function, but instead we get the list of numbers.#:foo is a keyword argument and '(apache httpd) is a quoted list containing the symbols apache and httpd.
Angled brackets have no special meaning, they are just part of the identifier.
GCL: https://www.gnu.org/software/gcl/
CLISP: http://clisp.org/
I think we can blame the use for lifetimes entirely on the Rusties.
(quote something)
Meaning: take whatever follows and leave it alone. Do not interpret it. If it's a list it stays a list (one of the main uses for this). The single quote ' is shorthand for that. It's meant to be an easier way to create a literal list (and other things) without escaping all the parts of a list that might be misinterpreted as symbols to evaluate (to values or functions).