Yep, as used it's both an atom and a list.
I've been working at extending AutoLisp for some time now. Mostly in the research phase, but I've been investigating redoing the entire engine. And what most Lisp implementations seem to have in common is that nil is the base class type, while atom and list are derived from that. Then the other types are derivatives of those. So it actually does seem that nil is the "daddy" of all other types.
If you look at it from an object oriented perspective:- NIL - Atom - Number - Integer - Real - EName - etc. - Sequence - Cons - String - etc.
So while everything is a nil (like in both cars and buses are vehicles), nil is not everything (like in a vehicle is not necessarily a bus). |