On Sunday, March 18, 2012 9:07:54 PM UTC-4, Brent Millare wrote: > > > this form is still unreadable by default, but with tagged literals, allows > users to define custom reader behavior per class. > #java.class.name [args*] > >
That syntax is already used for defrecords. Clojure 1.4.0-beta2 user=> (defrecord Foo [a b]) user.Foo user=> (read-string "#user.Foo[1 2]") #user.Foo{:a 1, :b 2} user=> > Either that or is there a way to alter the printing behavior of java > objects locally, instead of globally as when defining a print-method for > that type? > Sure, just define your own print function that defaults to the standard Clojure print. -S -- 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