Subject: Re: Variable Numbers of Arguments ?
From: (Rob Warnock)
Date: 9 Jan 2001 04:12:04 GMT
Newsgroups: comp.lang.scheme
Message-ID: <93e32k$k6gqn$>
Eric Deveaud <> wrote:
| use the dot notation
| (function arg1 arg2 arg3 . var_arg)

Because I also do a little bit of Common Lisp programming
occasionally, I've gotten in the habit of always giving a
Scheme dotted formal the name "rest":

    (define (foo x y z . rest) ...)

by analogy with the keyword "&rest", CL's equivalent for
a dot in that role:

    (defun foo (x y z &rest rest) ...)

It's just a convention; use it if you find it helpful.


Rob Warnock, 31-2-510
SGI Network Engineering
1600 Amphitheatre Pkwy.		Phone: 650-933-1673
Mountain View, CA  94043	PP-ASEL-IA