Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!milano.sw.mcc.com!cadillac!wa From: wa@raven.cad.mcc.com (Wayne Allen) Newsgroups: comp.lang.scheme Subject: multiple-value-returns Message-ID: Date: 2 Apr 91 21:56:51 GMT Sender: news@cadillac.CAD.MCC.COM Distribution: comp.lang.scheme Organization: MCC CAD Program, Austin, Texas Lines: 21 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