What is the difference between 1 and ‘1 in Lisp?

In Common Lisp, ‘1 is shorthand for (QUOTE 1). When evaluated, (QUOTE something) returns the something part, unevaluated. However, there is no difference between 1 evaluated and 1 unevaluated.

So there is a difference to the reader: ‘1 reads as (QUOTE 1) and 1 reads as 1. But there is no difference when evaluted.

Leave a Comment

tech