Re:The Empty List
by tmtvl on Saturday December 17, 2022 @05:26PM
(#34032932)
Technically not, because a cons of two objects is not eq to another cons of the same two objects.
It's memory locations, after all.
[ Parent
| on HN ]
I see, fair enough. I forgot to switch out of pure functional programming/referential transparency mode for this discussion. Fine, you can take NIL to be one particular (NIL . NIL) that's different from all other (NIL . NIL)s, the only particular (NIL . NIL) that is considered a list of length 0 while all other (NIL . NIL)s are lists of length 1.