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

Re: define and set! with multiple-values

> From: Scott_Fahlman@SEF-PMAX.SLISP.CS.CMU.EDU
> Multiple values do make life *much* harder for implementors.

In Scheme implementations with compilers that use continuation-passing
conversion, a return of some number of values is transformed into an
application of the continuation to the return values, i.e., just
another procedure call.  Multiple values do not make life harder for
those implementations.  One of the reasons some people would like to
make sure that extra return values are not silently ignored is because
it allows implementations to use the same calling mechanism for both
calls and returns.

By the way, I like multiple return values is Scheme--I'm one of the
ones who lead the fight to have them accepted in Scheme's next revision!