This is the mail archive of the guile@cygnus.com mailing list for the guile project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
>(multi-let (((a b) (give-two))) > (display a) ; => 5 > (display b) ; => 7 > ) I think this is usually called a pattern-matching let. Multiple return values are not lists. I think the draft R5RS has multiple return values, specified in a different way from what you propose. Guile doesn't implement that. No good solutions jump to mind. Returning a list will certainly work, but once Guile does have multiple return values, it will be really graceless to have a mix of functions that return lists, and functions that return multiple values.