3 ms·
Note that MacCarthy's Lisp didn't have (car nil); it was an error. I'm reluctant to insist that a language in the Lisp family must have (car nil), since that me
by kazinator 8y ago
Note that MacCarthy's Lisp didn't have (car nil); it was an error. I'm reluctant to insist that a language in the Lisp family must have (car nil), since that means that Lisp 1 and Lisp 1.5 aren't Lisp!
See this text in Steele and Gabriel's The Evolution of Lisp:
In
the
end
only
a
trivial
exchange
of
features
resulted
from
"the
great
MacLisp/Interlisp
summit":
MacLisp
adopted
from
Interlisp
the
behavior
(CAR NIL)
->
NIL
and
(CDR NIL)
->
NIL,
and
Interlisp
adopted
the
concept
of
a
read
table.
However, whether or not (car nil) works, it should express "the first element of the empty list, which is also false", rather than "the first element of a symbol that isn't related to lists and isn't Boolean false".