lisp-2

Separate Namespaces for Functions and Variables in Common Lisp versus Scheme

自作多情 提交于 2019-11-27 04:25:27
问题 Scheme uses a single namespace for all variables, regardless of whether they are bound to functions or other types of values. Common Lisp separates the two, such that the identifier "hello" may refer to a function in one context, and a string in another. (Note 1: This question needs an example of the above; feel free to edit it and add one, or e-mail the original author with it and I will do so.) However, in some contexts, such as passing functions as parameters to other functions, the

What is the difference between Lisp-1 and Lisp-2?

一世执手 提交于 2019-11-26 08:03:55
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? According to wikipedia : 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. 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

What is the difference between Lisp-1 and Lisp-2?

江枫思渺然 提交于 2019-11-26 03:24:41
问题 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? 回答1: According to wikipedia: 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. It's basically about whether variables and functions can have