[r6rs-discuss] [Formal] last-element behavior of for-each
agj at alum.mit.edu
Fri Oct 6 16:11:05 EDT 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.
| 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.
More information about the r6rs-discuss