This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
values (Re: R5RS)
"Jorgen `forcer' Schaefer" <forcer@mindless.com> writes:
> (define values list)
> (define call-with-values apply)
>
> would be a valid implementation -- though suboptimal.
no, it wouldn't. R5RS also introduces the concept of continuations
which expect values (inevitable, really), so you also have to redefine
call/cc and dynamic-wind to do the right thing.
that said, values/cwv are really pretty yucky. it lets you view a
function's result as a tuple, but for more symmetric and useful
functionality it would be better if you could view function arguments
this way too, but nada.
> -- forcer
--mike
--
What a depressingly stupid machine.
-- Marvin