[R6RS] summary of decisions regarding multiple values
dyb at cs.indiana.edu
dyb at cs.indiana.edu
Fri Jun 23 16:21:26 EDT 2006
> > Not exactly. The traditional CPS form of (lambda () (f (g))) is
> > (lambda (k) (g (lambda (v) (f v k)))).
>
> The proper translation of that CPS-transform into
> Scheme is (lambda (k) (g (lambda v (apply f k v)))).
Under your proposal, this won't toss the extra values returned by g, will
it? Won't f complain about receiving the wrong number of arguments?
Kent
More information about the R6RS
mailing list