Hi, I want to instantiate a record, but having the record type as value at runtime.
Example: (defrecord car [year manufacturere]) (defrecord bike [year manufacturere]) (defrecord boat [year manufacturer]) I want to do (new stuff 1982 "Mercedes"), but having the record type kept in the variable "stuff". Something like: (let [stuff car] (new stuff 1982 "Mercedes")) (let [stuff bike] (new stuff 1990 "Harley Davidson")) Obviously new does not work. I'm gratefull for suggestions of how to do it best. Thanks, Razvan -- 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