Some thoughts... David Rush (21 Nov 2001 19:26 UTC)
Bad things Re: Some thoughts... Jussi Piitulainen (21 Nov 2001 20:25 UTC)
Re: Bad things Re: Some thoughts... David Rush (22 Nov 2001 16:10 UTC)
Access time of elements Re: Bad things [] Jussi Piitulainen (27 Nov 2001 10:59 UTC)
Re: Access time of elements Re: Bad things [] Per Bothner (27 Nov 2001 17:10 UTC)
Re: Access time of elements Re: Bad things [] David Rush (27 Nov 2001 17:25 UTC)
Re: Access time of elements Re: Bad things [] Per Bothner (27 Nov 2001 17:55 UTC)
Re: Access time of elements Re: Bad things [] David Rush (27 Nov 2001 21:19 UTC)
Re: Access time of elements Re: Bad things [] Jussi Piitulainen (28 Nov 2001 15:40 UTC)
Re: Access time of elements Re: Bad things [] Jussi Piitulainen (28 Nov 2001 16:20 UTC)
Re: Access time of elements Re: Bad things [] Noel Welsh (28 Nov 2001 10:55 UTC)
Re: Access time of elements Re: Bad things [] Jussi Piitulainen (28 Nov 2001 17:21 UTC)

Re: Access time of elements Re: Bad things [] David Rush 27 Nov 2001 21:18 UTC

Per Bothner <xxxxxx@bothner.com> writes:
> Of your (David's) two suggestions:
>
>      1 (array-set! a val dim0 dim1 ... dimn)
>      2 (array-set! a (array-index dim0 dim1 ... dimn) val)
>
> I can see some appeal in (2), but I do dislike (1).

Fair enough. I initially disliked it, too, but I have grown used to it
through quite a bit of personal code that makes similiar changes for
mutating operators.

> The main problem with (2) is that it adds a new concept - an
> "index object" data-type.

Yep, but it actually adds value, I think. Sooner or later
people are going to want slicing; having the index-object present
helps pave the way for that.

david rush
--
Life's but a walking shadow; a poor player
That struts and frets his hour upon the stage,
And then is heard no more: it is a tale
Told by an idiot, full of sound and fury,
Signifying nothing. -- Macbeth Act 5, scene 5