[r6rs-discuss] [Formal] last-element behavior of for-each

From: Marcin 'Qrczak' Kowalczyk <qrczak>
Date: Fri Oct 6 16:31:51 2006

John Cowan <cowan_at_ccil.org> writes:

> If we don't care about the results of the function on any of the
> preceding elements, why are we likely to care on the final elements,
> indeed? I don't remember ever using for-each for anything but effect.

I suppose the tail call was the motivation, rather than the result.

But I agree that it's perhaps not worth the trouble, i.e. that
programmers shouldn't expect a tail call here.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak_at_knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/
Received on Fri Oct 06 2006 - 16:31:33 UTC

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