On Sun, Oct 30, 2011 at 2:22 PM, Dennis Haupt <d.haup...@googlemail.com>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> i played around a bit
>
> (defmacro times [times & exprs]
>  '(let [countdown# ~times]
>     (loop [remaining# countdown#]
>       (when (< 0 remaining#)
>         ~@exprs
>         (recur (dec remaining#))))))
>

It looks like you have an apostrophe in '(let - it should be a backquote.

Also the error message is confusing because you have named the parameter
times and the macro times with the same name.

-- 
Dave

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to