【发布时间】:2019-06-10 08:59:45
【问题描述】:
我正在阅读Programming in Emacs Lisp
Here is another list, this time with a list inside of it:
'(this list has (a list inside of it))
我对嵌套列表感到困惑,为什么它没有前缀引用为
'(this list has '(a list inside of it))
如果没有前缀`,为什么不将a解析为函数?
【问题讨论】:
-
了解
'(意思是(quote ...))并不是制作列表的简写,这一点非常重要。这是一种导致 lisp 返回的形式,未计算,由 lisp 阅读器创建的对象。我建议您在学习过程中的某个阶段阅读有关 lisp 执行的不同read和eval阶段的信息。一旦你理解了区别,quote就会更有意义。