Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the semantic difference between the backtick and quote symbols in Common Lisp?

I understand that both suppress evaluation of a symbol or expression. But the backtick is used for macro definitions while the apostrophe is used for symbols (among other things). What is the difference, semantically speaking, between these two notations?

like image 885
Shoblade X Avatar asked Dec 24 '22 09:12

Shoblade X


1 Answers

Backticks allow for ,foo and ,@foo to interpolate dynamic parts into the quoted expression.

' straight up quotes everything literally.

If there are no comma parts in the expression, ` and ' can be used interchangeably.

like image 84
melpomene Avatar answered Jan 10 '23 20:01

melpomene