On Jul 30, 5:03 pm, Chouser <chou...@gmail.com> wrote: > Are you aware of *print-dup* ? It causes the printer to > preserve more of the specific type information than normal > printing: > > user=> (binding [*print-dup* true] (prn (hash-map :a 1, :b 2))) > {:a 1, :b 2} > nil > user=> (binding [*print-dup* true] (prn (sorted-map :a 1, :b 2))) > #=(clojure.lang.PersistentTreeMap/create {:a 1, :b 2}) > nil
This doesn't actually work for structs, which may be a bug. That is, you can prn a struct, but you can't read it back in. -SS --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---