Re: A style question
- From: Lars Rune Nøstdal <larsnostdal@xxxxxxxxx>
- Date: 28 Feb 2007 02:24:23 GMT
On Wed, 28 Feb 2007 02:08:39 +0000, Lars Rune Nøstdal wrote:
(defmacro cond* (&body body)
`(let ((any-clause-p nil))
Yup; I forgot the gensym:
(defmacro cond* (&body body)
(let ((any-clause-p (gensym)))
`(let ((,any-clause-p nil))
,@(mapcar (lambda (clause-form)
(if (eq :unless-till-now (first clause-form))
`(unless ,any-clause-p ,(second clause-form))
`(when ,(first clause-form)
,(second clause-form)
(setf ,any-clause-p t))))
body))))
--
Lars Rune Nøstdal
http://nostdal.org/
.
- References:
- A style question
- From: job-271842874
- Re: A style question
- From: Lars Rune Nøstdal
- A style question
- Prev by Date: Re: A style question
- Next by Date: Re: A style question
- Previous by thread: Re: A style question
- Next by thread: Re: A style question
- Index(es):