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 ~product-expr))
It's giving me this kind of error: Exception in thread "main" java.lang.ExceptionInInitializerError (test_parse.clj:0) If I try it without the quotes: (defmacro complex [steps & product-expr] (domonad parser-m steps product-expr)) I get this error: Exception in thread "main" java.lang.UnsupportedOperationException: count not supported on this type: Symbol (fnparse.clj:55) What can I do to get complex to call domonad with parser-m, delegating what arguments it gets to domonad? --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---