guile-user
[Top][All Lists]
Advanced

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

Re: values->list elements


From: Neil Jerram
Subject: Re: values->list elements
Date: Fri, 16 Jun 2006 09:00:40 +0100
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

szgyg <address@hidden> writes:

> This isn't a new idea, but the original semantic.
>
> | (this is not a serious proposal for a language extension,
> | but only an example):
> | (1) Wherever n consecutive arguments might be written in
> |     a function call, one may instead write {f x1 ... xm}n,
> |     where n is a positive integer. The "function" f must
> |     return n values, which are used as n arguments
> |     in the function call.
> | (2) The primitive (values x1 ... xn) returns its n arguments
> |     as its n values. Thus writing "{values x1 ... xn}n" is
> |     the same as writing "x1 ... xn" as arguments in a
> |     function call.
>
> [Guy L. Steele: LAMBDA: The Ultimate Declarative, 1976, p 18-19]

Interesting!  So how come RnRS turned out not to include this?

Regards,
     Neil





reply via email to

[Prev in Thread] Current Thread [Next in Thread]