[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Motivation for PARSE-BODY
- To: Masinter.pa@Xerox.COM
- Subject: Re: Motivation for PARSE-BODY
- From: Gregor Kiczales <Gregor.pa@Xerox.COM>
- Date: Wed, 30 Jul 1986 18:28:00 -0000
- Cc: gls@Think.COM, common-lisp@su-ai.ARPA
- In-reply-to: Masinter.pa's message of 30 Jul 86 10:46 PDT
- Sender: Gregor.pa@Xerox.COM
From: Masinter.pa
Even if PARSE-BODY were as generally useful as, say, splicing reader
macros, the argument that it should be in Common Lisp because it
>might
be convenient< for writers of embedded languages is a very weak one.
Independent of this sub-debate, I think the example the was already
given (by MLY I think) of:
(defmacro foo (&body body) (foo-internal body nil))
(defmacro foo* (&body body) (foo-internal body t))
(defun foo-internal (body sequentialp)
(multiple-value-bind (decls doc real-body) (parse-body body) ...)))
Is enough motivation for having PARSE-BODY.