[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] what is the difference between "#!rest" and "."
From: |
Kon Lovett |
Subject: |
Re: [Chicken-users] what is the difference between "#!rest" and "." |
Date: |
Fri, 2 Nov 2007 17:45:20 -0700 |
On Nov 2, 2007, at 5:09 PM, naruto canada wrote:
hi
chicken.pdf mentions "#!rest".
I did a quick test:
echo '((lambda (x y . z) z) 3 4 5 6)' | csi -q
(5 6)
"." seems to works as intened, why "#!rest" ?
For use w/ #!key & #!optional - DSSSL style formal parameter list.
If your optional parameters are either easy to parse (they are all of
the same kind) or very hard to parse then just use a dotted formal
parameter list.
Many ways to do the same thing - see let-optionals[*], case-lambda, &
optional.
Thanks
_______________________________________________
Chicken-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/chicken-users
Best Wishes,
Kon