What is the semantic difference between reverse line and quote characters in Common Lisp?

I understand that both suppress the evaluation of a character or expression. But the backtick is used for macros, while the apostrophe is used for characters (by the way). What is the difference, semantically, between these two designations?

+4
source share
2 answers

A standard quote is a true constant literal, and similar lists and lists that end with the same structure can share values:

'(a b c d) ; ==> (a b c d)

backquoted . , . , - `(a ,@b ,c d) - (cons 'a (append b (cons c '(d)))).

, , , macroexpand , , . , .

NB: , , - , '(d) , , .

, . , , - . . PHP

"Hello $var"; // ==> 'Hello Shoblade'
'Hello $var'; // ==> 'Hello $var'
+5

Backticks ,foo ,@foo .

' .

, ` ' .

+3

Source: https://habr.com/ru/post/1694542/


All Articles