Yours is not actually the same as the one from Monger. Hint: you're missing an important character that prevents def from being called.
Justin On Thursday, November 8, 2012 10:22:39 PM UTC-5, Satoru Logic wrote: > > Hi, all. > > When I try to run the following `macro` in `lein repl` (with clojure1.3 > and clojure1.4): > > (defmacro ^{:private true} defoperator > [operator] (def ^{:const true} ~(symbol (str operator)) ~(str > operator))) > > But a `CompilerException` is raised: > > CompilerException java.lang.RuntimeException: First argument to def > must be a Symbol, compiling:(NO_SOURCE_PATH:3) > > I found this `macro` in the source code of `Monger`, so I guess it should > be a valid `macro`, maybe this can't be run in `repl`? > -- 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