[r6rs-discuss] Multiple returns from higher-order procedures

From: Michael Sperber <sperber>
Date: Sun, 24 Jun 2007 18:26:07 +0200

AndrevanTonder <andre at het.brown.edu> writes:

> On Sat, 16 Jun 2007, AndrevanTonder wrote:

>>>> If multiple returns occur from ---, the return values
>>>> returned by earlier returns are not mutated.
>
> By the way, I think the same requirement should be imposed on
>
> list-sort
> vector-sort
>
> in (rnrs sorting). Also, I think it would be sensible to require the same
> of
>
> vector-map
>
> in (r6rs base).

For `list-sort', OK. But for `vector-sort' and `vector-map'? Maybe I'm
not understanding the issue correctly: You had a great example for why
allowing mutation would be harmful with `map'---moreover, there isn't
really any overhead with `map'. But is the same the case for the
procedures operating on vectors?

-- 
Cheers =8-} Mike
Friede, V?lkerverst?ndigung und ?berhaupt blabla
Received on Sun Jun 24 2007 - 12:26:07 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC