[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why vectors?
This page is part of the web mail archives of SRFI 99 from before July 7th, 2015. The new archives for SRFI 99 contain all messages, not just those from before July 7th, 2015.
- To: srfi-99@xxxxxxxxxxxxxxxxx
- Subject: Re: Why vectors?
- From: Derick Eddington <derick.eddington@xxxxxxxxx>
- Date: Mon, 11 Aug 2008 14:58:40 -0700
- Delivered-to: srfi-99@xxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=W0nI8HM2CIjYnfn+l2PM6ULH4mVR44y6iHFGe1mMxcc=; b=vzXvkmyIvT7SA5BHGKYOd8+fKRUSBFO3cYkZAZ5owDAI5QTC0LE3Q5LANTv2/2FpTu V+xTkjNjWW87OjRKi9Q7WpzmZAEEYKtrJaXwQ/5ScDqIHJWC3QDlkQpjeOLr6qfWXpUF BlcGx2gfS7kyd3PX48509h7fz9uXLpk3tlvNU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=DiRODwW852chO+WsRt8BiThPdrREkqOucTNFYc0Qal+ZttqylHYkwFddqJOdyHPyIr LyDJXRT6+yTspq9UlR+OgE2wvElkFiegd0SDBdJ8ympzgodUaPqiF4gjkuUcyBzN/iao qsBrl73ssgUBQRB/zhauF3IQ/2v5lQfq4KviM=
- In-reply-to: <Pine.SOC.4.64.0808110850160.3030@xxxxxxxxxxxxxxxxx>
- References: <1218433189.7249.107.camel@eep> <Pine.SOC.4.64.0808110850160.3030@xxxxxxxxxxxxxxxxx>
On Mon, 2008-08-11 at 08:53 -0400, Physics wrote:
> On Sun, 10 Aug 2008, Derick Eddington wrote:
>
> > interoperating with the R6RS records procedures that deal in vectors
> > without having to convert list<->vector is not a good enough reason
> > compared to the benefit of using lists with one's primary record system
> > of use,
>
> What is the benefit of using lists?
The benefit of having the field specifiers of make-rtd, rtd-constructor,
rtd-field-names, and rtd-all-field-names be lists is: lists fit with all
the sequence-related things, both in standard Scheme and in others'
libraries, which use lists and not vectors. E.g., memq for looking for
a field name, filter, append, reverse, etc.
Unless there's a compelling reason to use vectors, why not use Scheme's
natural sequence type: the list?
--
: Derick
----------------------------------------------------------------