[comp.lang.scheme] multiple-value-returns

wa@raven.cad.mcc.com (Wayne Allen) (04/03/91)

doug@snitor.uucp (Doug Moen) writes:

>I have a counter-proposal.  I feel there is a much simpler way to
>support multiple return values; one which fits in better with the
>rest of the language:  multiple return values are represented by lists.

	...etc.

>Thus:
>  (let ((a (foo))
>	((b c) (procedure-which-returns-a-list-of-two-values))
>	((first second . rest) (procedure-which-returns-a-list)))
>     ...)

I like it better than other proposals I've heard/seen, especially the
formal argument syntax business.  

Staring at too many parens lately...  :-\

wa