[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Motivation for PARSE-BODY



    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.