Re: Argument order for folds
Wolfgang Corcoran-Mathe 20 Aug 2020 20:25 UTC
On 2020-08-20 22:12 +0200, Marc Nieper-Wißkirchen wrote:
> Am Do., 20. Aug. 2020 um 21:49 Uhr schrieb Wolfgang Corcoran-Mathe
> <xxxxxx@sigwinch.xyz>:
>
> > I think the specification of the bitvector fold procedures needs
> > elaboration. In particular, the order in which <kons> is applied
> > to its arguments should be specified, since Scheme's folds disagree
> > on this.
>
> +1
>
> The SRFI 43/133/160 order is actually the better one (compared to the
> SRFI 1 order) because that part of the argument list that varies (in
> length) should always come last (for example, to make it compatible
> with the case-lambda, etc.).
Agreed. The SRFI 1 order does not play nicely with `apply'.
--
Wolfgang Corcoran-Mathe <xxxxxx@sigwinch.xyz>
"Karate begins with courtesy and ends with it." --Shoshin Nagamine