Go to Google Groups Home    comp.lang.scheme
Alternatives to values/call-with-values

cr88192 <cr88...@hotmail.com>

> To my surprise, this proposal generated almost no discussion.  In fact,
> it seemed to mark the end of the original one, and since then people
> seem to have resigned themselves to values/call-with-values, occasional
> fulminations aside.

> My questions:

> 1.  Is this proposal still viable for Scheme, as a language, today?

> 2.  What are the thoughts of implementors on the proposal?

> 3.  Have people really resigned themselves to values/call-with-values,
>     both
>       a) as a specific means of handling multiple return values, and
>       b) as the philosophical departure from the roots of the language
>          they (arguably) represent?

> 4.  Does anyone have any other ideas for dealing with the problem of
>     multiple return values that haven't been raised yet?

as of yet I did not bother to implement these. if I did it would probably
jusy be in the form of macros:
(defmacro values x
    `(list ,@x))

(defmacro call-with-values (f g)
    `(apply ,f ,g))

yes, working hygenic macros were another thing I never got to...
instead I had a half-working macro system that I just used to implement
defmacro...