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

multiple return values and let



T 3.0 release notes describe a reveive form for binding multiple names
to multiple return values.  In stead of introducing yet another
binding construct I would prefer to extend the existing let construct.

For example, in stead of

  (receive (a b c) (return 1 2 3)
    (list a b c))

I would like to write

  (let (((a b c) (return 1 2 3)))
    (list a b c))

This note was trickered by a Scheme article in recent Lisp Pointers
where it was mentioned that multiple return values are likely to be
part of the next version of Scheme.

Juha Heinanen
Tampere Univ of Technology
Finland