p.s. I just wrote:
+---------------
| I tend to prefer the Scheme-style default for the non-list arg case:
| (defmacro \\ (args &body body)
| `(lambda ,(if (listp args) args (list '&rest args)) ,@body))
+---------------
I forgot to mention that I actually prefer ML's name "FN" for a
LAMBDA abbreviation, since it's the same number of keystrokes as "\\"
but doesn't print weirdly:
> (defmacro fn (args &body body)
`(lambda ,(if (listp args) args (list '&rest args)) ,@body))
FN
> (mapcar (fn (x) (+ 3 x)) '(3 4 5))
(6 7 8)
>
-Rob
-----
Rob Warnock <rpw3@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607