cool! thought you had to refer or something the namespace, but i guess
the reader works differently.

changes are here
https://github.com/Storkle/defrecord2

basically, i modified it to work with print-dup and i got rid of the
pprint methods and changed the way constructor names are specified. so
now

(defrecord2 (hi my-constructor) [a b] Protocol1 ....)
and (my-constructor {:a 2 :b 3})

(pprint a-record) ;pprints like a normal record

but
(binding [*print-dup* true] (print-str (my-constructor {:a 2})))
will output something like this

#=(my.namespace/my-constructor .....)

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