Lisp-1 和 Lisp-2 有什么区别? [英] What is the difference between Lisp-1 and Lisp-2?
问题描述
我试图了解 Lisp-1 和 Lisp-2 之间的区别以及这与 Clojure 的关系,但我仍然没有正确理解.谁能给我指点一下?
I have tried to understand the difference between Lisp-1 and Lisp-2 and how this relates to Clojure but I still do not understand properly. Can anyone enlighten me?
推荐答案
根据 维基百科:
单独的函数命名空间是否是一个优势是 Lisp 社区争论的一个来源.它通常被称为 Lisp-1 与 Lisp-2 的辩论.Lisp-1 指的是 Scheme 的模型,Lisp-2 指的是 Common Lisp 的模型.
Whether a separate namespace for functions is an advantage is a source of contention in the Lisp community. It is usually referred to as the Lisp-1 vs. Lisp-2 debate. Lisp-1 refers to Scheme's model and Lisp-2 refers to Common Lisp's model.
基本上是关于变量和函数是否可以同名而不冲突.Clojure 是 Lisp-1 意味着它不允许同时对函数和变量使用相同的名称.
It's basically about whether variables and functions can have the same name without clashing. Clojure is a Lisp-1 meaning that it does not allow the same name to be used for a function and a variable simultaneously.
这篇关于Lisp-1 和 Lisp-2 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!