On 03/24/2011 09:38 PM, Alan wrote:
A macro should work fine if you use ~@ instead of just ~.

(defmacro save-article
    [path form-params timestamp]
    `(ds/save! (Article. ~path ~@(vals form-params) ~timestamp)))

Thanks for the suggestion, but:
----
Unknown location:
error: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol
----

(I doubt I managed to introduce a mistake, as it looks alright with macroexpand.)


--
Thorsten Wilms

thorwil's design for free software:
http://thorwil.wordpress.com/

--
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