[CM] s7_nil behaving as #t

Kjetil Matheussen k.s.matheussen at gmail.com
Tue Sep 8 04:11:02 PDT 2020


On Tue, Sep 8, 2020 at 12:55 PM Christos Vagias
<chris.actondev at gmail.com> wrote:
>
> (if () 1 2) => returns 1
>
> Similarly with s7_nil (as returned from a c binding)
>
> I think s7_nil should behave as #f.
>
> Opinions?
>

There's lots of situations where this would be practical, but since s7
is a Scheme implementation, I think it's probably best to behave as #t
to avoid trouble when porting to other scheme implementations. Also,
people who knows scheme would be confused if '() returned #f.


More information about the Cmdist mailing list