Subject: Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul
From: rpw3@rpw3.org (Rob Warnock)
Date: Fri, 01 Jul 2005 20:44:29 -0500
Newsgroups: comp.lang.lisp
Message-ID: <f86dnXf-bNzgbFjfRVn-ig@speakeasy.net>
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