[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
"roflcopter".
> "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.
- Re: A value for "nothing", (continued)
- Re: A value for "nothing", Mark H Weaver, 2018/08/28
- Re: A value for "nothing", Mark H Weaver, 2018/08/28
- Re: A value for "nothing", John Cowan, 2018/08/28
- Re: A value for "nothing", Mark H Weaver, 2018/08/28
- Re: A value for "nothing", Mark H Weaver, 2018/08/28
Re: A value for "nothing", Panicz Maciej Godek, 2018/08/26
Message not available
Message not available
Re: A value for "nothing", HiPhish, 2018/08/26