[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Scheme-reports] multiple values, and, or, when, unless
- To: scheme-reports <scheme-reports@x>
- Subject: [Scheme-reports] multiple values, and, or, when, unless
- From: Andy Wingo <wingo@x>
- Date: Sat, 05 Jan 2013 20:31:30 +0100
The specification for `and' notes that "If all the expressions evaluate
to true values, the value of the last expression is returned." This is
not the case: as the last expression is in tail context, the _values_ of
the last expression are returned. Same with `or', `when', and
`unless'.
Contrary to their specifications and the "differences from r6rs"
appendix, the return value of `when' and `unless' is indeed specified if
the body is evaluated, as the body is in tail position.
Andy
--
http://wingolog.org/
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports