This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: proposed changes to handling of false and end-of-list
- From: Jamison Hope <jrh at theptrgroup dot com>
- To: "kawa at sourceware dot org list" <kawa at sourceware dot org>
- Date: Thu, 18 Jul 2013 21:16:47 -0400
- Subject: Re: proposed changes to handling of false and end-of-list
- References: <51CE82FC dot 9090209 at bothner dot com> <16EBEA10-7EC3-48A0-A03B-6C845EEE1F91 at theptrgroup dot com> <51E883B7 dot 7090302 at bothner dot com> <D8F59B4E-73C7-4F2B-A9D1-204C5D8A6A5E at theptrgroup dot com>
On Jul 18, 2013, at 8:36 PM, I wrote:
>> * (if (values) 'true 'false)
>>
>> FALSE
Also, R6RS and the R7RS WG1 draft say we're free to release the nasal
demons for (values) in a 1-value context:
"The effect of passing no value or more than one value to
continuations that were not created by call-with-values is
unspecified."
(N.B. Guile and MIT Scheme treat it as true, Racket treats it as an
error. I haven't tested any other implementations.)
[But there's still the craziness that NIL in Common Lisp is not only
() and #f and #!null and #!void, it's also a _symbol_, namely 'NIL.]
--
Jamison Hope
The PTR Group
www.theptrgroup.com