From ... Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news2.kpn.net!news.kpn.net!nslave.kpnqwest.net!nloc2.kpnqwest.net!nloc.kpnqwest.net!nmaster.kpnqwest.net!nreader2.kpnqwest.net.POSTED!not-for-mail Newsgroups: comp.lang.lisp Subject: Re: On nil qua false [was: Re: On conditionals] References: <3215299538573186@naggum.net> <9tgcpc$3ce$1@news.gte.com> <3215360195434986@naggum.net> <3BFC2BC7.BDD2CEF0@nyc.rr.com> <3BFC3F7F.E31CBAF0@nyc.rr.com> <3BFC6AB7.4B7B99B9@nyc.rr.com> <3BFC92C8.FE1BCD84@nyc.rr.com> Mail-Copies-To: never From: Erik Naggum Message-ID: <3215443150672901@naggum.net> Organization: Naggum Software, Oslo, Norway Lines: 30 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 22 Nov 2001 18:39:13 GMT X-Complaints-To: newsmaster@KPNQwest.no X-Trace: nreader2.kpnqwest.net 1006454353 193.71.66.49 (Thu, 22 Nov 2001 19:39:13 MET) NNTP-Posting-Date: Thu, 22 Nov 2001 19:39:13 MET Xref: archiver1.google.com comp.lang.lisp:20766 * Bruce Hoult | Here's what I don't get about CL confusing false and the empty list: Please stop thinking of it as a "confusion", and you may get it. | suppose you have a function (foo name) that returns a list of all the | classes being taken by a student. If the function returns NIL, does that | mean that the student is taking no classes at the moment, or does it mean | that the student doesn't exist? Well, read the documentation of the function to find out. What else can there possibly be to say about this? This is a non-existing problem. Since you think SQL's NULL is so great, do you get a NULL if the student whose classes you ask for does not exist? Why would you ask for the classes of a non-existing student? Not to mention, _how_? Is a student somehow magically adressable? In other words, what did you give that function as an argument to identify the student? | It seems to me that using an empty list to represent NULL is just as bad. If you need to distinguish the empty list from NULL (nil) in the same function, your design sucks because you are confused, not the language. /// -- Norway is now run by a priest from the fundamentalist Christian People's Party, the fifth largest party representing one eighth of the electorate. -- Carrying a Swiss Army pocket knife in Oslo, Norway, is a criminal offense.