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

From: Aubrey Jaffer <agj>
Date: Fri Oct 6 16:11:46 2006

 | Date: Tue, 3 Oct 2006 09:26:53 -0400
 | From: John Cowan <cowan_at_ccil.org>
 |
 | Per Bothner scripsit:
 |
 | > I propose that the return value of for-each be "the unspecified
 | > value" [pending resolution of this issue], and the requirement
 | > for special handling of the last element be removed.
 |
 | +1

+1

 | 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.

R5RS has FOR-EACH return an unspecified value, so using its value
would not be portable.
Received on Fri Oct 06 2006 - 16:11:05 UTC

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