[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] quasiquote, unquote-splicing and cons cells
From: |
John Cowan |
Subject: |
Re: [Chicken-users] quasiquote, unquote-splicing and cons cells |
Date: |
Sat, 5 Jan 2008 15:21:58 -0500 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hans Bulfone scripsit:
> this is exactly how i hoped it to be, but the question is if this
> is actually allowed or if it just works "accidentally".
It is indeed valid to have a lambda-list that is just an identifier,
in which case that identifier is bound to a list of all the arguments.
See the second bullet point in R5RS 4.1.4 at
http://schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-7.html#%_sec_4.1.4
Another way to think of it is that "r", considered as a list, has a tail
but no head.
--
Barry gules and argent of seven and six, John Cowan
on a canton azure fifty molets of the second. address@hidden
--blazoning the U.S. flag http://www.ccil.org/~cowan