Re: mv quasi-quotation

From: Paul F. Dietz (dietz_at_dls.net)
Date: 01/26/05


Date: Wed, 26 Jan 2005 06:22:52 -0600

Christophe Turle wrote:

> 1- Efficiency : is the compiler smart enough to not build unneeded lists.

Efficiency in backquoted forms almost never matters. I use ,@ almost
exclusively vs. ,. since I don't want to waste time debugging sharing
problems.

> 2- how to reduce the typing ? can a reader macro-character expands to
> ,@(multiple-value-list ...)
> It's a shame that ` has no standard list form like in Scheme.

(defmacro mvl (form) `(multiple-value-list ,form))

    ... ,@(mvl (values ...)) ...

        Paul