[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A value for "nothing"

From: HiPhish
Subject: Re: A value for "nothing"
Date: Mon, 27 Aug 2018 10:40:05 +0200

I think I understand: it just so happens that `(if #f #f)` evaluates to 
`#<unspecified>`, but it would still be valid if it evaluated to 5 or 

> "The return value of a function that returns nothing" is a
> self-contradictory notion, if you think about it :)
I was under the impression that in Lisp any S-expression evaluates to 
*something*, even if that something is some junk value or "nothing".
> I would suggest using a symbol.  How about 'nil?
I was considering the possibility of serialising symbols as strings, but then 
'nil would be indistinguishable from the string "nil". The more I think about, 
the more a singleton instance of a custom record makes sense.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]