Hi, Am 28.03.2011 um 22:29 schrieb Alan:
> If you need it quoted in the "def" context: > > (defmacro def-entity-and-attrs [entity-name key attrs-name attrs] > `(do (def ~attrs-name '~attrs) > (ds/defentity ~entity-name ~(vec (concat ['^:key key] > attrs))))) > > Note the ' before attrs. > > PS why is there a ' before ^:key? It doesn't seem to me like it does > anything. It quotes the key symbol. Without it you get a similar error to the one you fixed with the ' in front of the ~attrs. Sincerely Meikel -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
