引用和自我評估物件

請注意,許多資料型別不需要引用,因為它們會自行計算。QUOTE 對於符號和列表特別有用,以防止以 Lisp 形式進行評估。

不需要引用以防止評估的其他資料型別的示例:字串,數字,字元,CLOS 物件,…

這是一個字串示例。評估結果是字串,無論它們是否在源中引用。

> (let ((some-string-1 "this is a string")
        (some-string-2 '"this is a string with a quote in the source")
        (some-string-3 (quote "this is another string with a quote in the source")))
    (list some-string-1 some-string-2 some-string-3))

("this is a string"
 "this is a string with a quote in the source"
 "this is another string with a quote in the source")

因此,引用物件是可選的。