[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple values



I agree completely!  All the extra mechanism proposed seems
unnecessary.

A single comments though,

What is the problem with having continuations expect multiple
arguments when they in fact are capable of returning them?

It seems to me that, it is not only the case that it would be nice if

(receive-values 
  (lambda (x y) (list x y))
  (call-with-current-continuation
     (lambda (k) (k 1 2))))		=> (1 2).

worked, but instead it SHOULD work.  Certainly the simplest
implementation of the whole mechanism that I can think of would take
care of this.