Re: [Scheme-reports] Legacy caar to cddddr Aubrey Jaffer (23 Oct 2011 22:50 UTC)
Re: [Scheme-reports] Legacy caar to cddddr Alex Shinn (24 Oct 2011 14:09 UTC)
Re: [Scheme-reports] Legacy caar to cddddr Aubrey Jaffer (24 Oct 2011 16:02 UTC)
Re: [Scheme-reports] Legacy caar to cddddr John Cowan (24 Oct 2011 21:17 UTC)
Re: [Scheme-reports] Legacy caar to cddddr Alex Shinn (24 Oct 2011 23:58 UTC)
Re: [Scheme-reports] Legacy caar to cddddr Andre van Tonder (24 Oct 2011 16:04 UTC)
Re: [Scheme-reports] Legacy caar to cddddr Alaric Snell-Pym (24 Oct 2011 16:09 UTC)
Re: [Scheme-reports] Legacy caar to cddddr Alex Shinn (25 Oct 2011 00:07 UTC)
Re: [Scheme-reports] Legacy caar to cddddr John Cowan (24 Oct 2011 17:02 UTC)
Re: [Scheme-reports] Legacy caar to cddddr Ray Dillinger (24 Oct 2011 21:30 UTC)
Re: [Scheme-reports] Legacy caar to cddddr John Cowan (24 Oct 2011 21:51 UTC)

Re: [Scheme-reports] Legacy caar to cddddr Alaric Snell-Pym 24 Oct 2011 16:08 UTC

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/24/2011 05:03 PM, Andre van Tonder wrote:
> On Mon, 24 Oct 2011, Alex Shinn wrote:
>
>> I'd be interested to see real-world examples of (set-car! (c[ad]{3,}r x) y).
>> My guess is these are examples of abusing lists as records.
>
> Whether to call this an abuse is very subjective, depending very much on the
> type system you are imposing in your mind on your Scheme program.
>
> In my opinion, lists provide a wonderfully elegant representation
> of anonymous product types a la Hindley-Milner.  They have the additional
> advantage that you can portably READ and WRITE them and debug them easily,
> whereas records require a bunch of annoying boilerplate to do this.

Aren't vectors better for that?

ABS

- --
Alaric Snell-Pym
http://www.snell-pym.org.uk/alaric/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6ljY4ACgkQRgz/WHNxCGqDwgCeNo29PaZiL+pCu1PdNQLKCrl2
xXwAn3a0QAt1Z8woYt0c0yeu7P8u7Ki0
=+hI0
-----END PGP SIGNATURE-----

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