On Nov 22, 10:08 pm, André Thieme <[EMAIL PROTECTED]> wrote: > (defstruct person :name :age) > > (defn make-person [name age] > (assoc (struct person name age person) :type person))
Maybe you could roll this into a macro: (defmacro struct* [type & params] `(assoc (struct ~type [EMAIL PROTECTED]) :type ~type)) - James --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---