On Apr 30, 2009, at 17:39, samppi wrote:
> I'm having trouble trying to create a macro that calls domonad with
> one argument already filled in: (domonad parser-m rest-of-arguments).
> parser-m is a monad defined in the same namespace. This is what I have
> right now:
> (defmacro complex
>
Thanks for the help. The problem was fixed when I both removed the ~
in front of parser-m and changed ~product-expr to ~...@product-expr.
Why is it, though, that parser-m should not be unquoted? If it was
unquoted, would it not just pass in the value of parser-m at macro-
expansion time?
On Apr
Hi,
Am 30.04.2009 um 17:39 schrieb samppi:
(defmacro complex
[steps & product-expr]
`(domonad ~parser-m ~steps ~product-expr))
Just leave out the ~ in front of parser-m. And
I'm not sure how you want to handle product-expr.
Maybe a @ is also missing here.
(defmacro complex
[steps
I'm having trouble trying to create a macro that calls domonad with
one argument already filled in: (domonad parser-m rest-of-arguments).
parser-m is a monad defined in the same namespace. This is what I have
right now:
(defmacro complex
[steps & product-expr]
`(domonad ~parser-m ~steps