Re: [Scheme-reports] Immutable list SRFI updated Taylan Ulrich Bayirli/Kammer (09 Sep 2014 07:07 UTC)
Re: [Scheme-reports] Immutable list SRFI updated Kevin Wortman (09 Sep 2014 19:39 UTC)
Re: [Scheme-reports] Immutable list SRFI updated John Cowan (09 Sep 2014 20:49 UTC)
Re: [Scheme-reports] Immutable list SRFI updated Peter Bex (09 Sep 2014 21:19 UTC)

Re: [Scheme-reports] Immutable list SRFI updated Taylan Ulrich Bayirli/Kammer 09 Sep 2014 07:00 UTC

Kevin Wortman <kwortman@gmail.com> writes:

> I am not entirely sold on using '() to represent an empty immutable
> list. It feels like a shortcut, and that instead there should be
> another constructor that yields a empty ilist object that is distinct
> from all other objects. As it is, I'm not sure we can rightly say that
> ilist is a disjoint data type, since there exists an object that
> satisfies both ilist? and list? .

Lists are not a disjoint type anyway, since all but () satisfy pair?,
and () satisfies null?.

Taylan

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports