2 ms·
> Nothing in Lisp requires pointers in either half of a cons cell. You are definitely right about that, but the initial claim was made about "Lisp list", for w
by xdavidliu 4y ago
> Nothing in Lisp requires pointers in either half of a cons cell.
You are definitely right about that, but the initial claim was made about "Lisp list", for which cdr is certainly a pointer. I would expect that when we refer to "Lisp lists", we certainly don't include things like (cons 1 2)
- dreamcompiler 4y agoExcept at the end of the list when the cdr contains nil, which is not a pointer but a special value. BTW (listp (cons 1 2)) => true so (cons 1 2) is indeed a list; it's just not a proper list.