Re: PATCH: printing a ref with type metadata

2009-03-28 Thread Konrad Hinsen
On 27.03.2009, at 22:25, srader wrote: > Thanks for the explanation and the patch. But instead of patching > print-method, maybe vary-meta should be patched to handle refs? That doesn't make sense to me. vary-meta takes a value object and returns another value object with identical value but d

Re: PATCH: printing a ref with type metadata

2009-03-27 Thread srader
Thanks for the explanation and the patch. But instead of patching print-method, maybe vary-meta should be patched to handle refs? Scott On Mar 27, 7:07 am, Konrad Hinsen wrote: > On Mar 27, 2009, at 12:55, Konrad Hinsen wrote: > > > I'd say yes. Here's what happens: Typing "foo" at the REPL cau

PATCH: printing a ref with type metadata

2009-03-27 Thread Konrad Hinsen
On Mar 27, 2009, at 12:55, Konrad Hinsen wrote: > I'd say yes. Here's what happens: Typing "foo" at the REPL causes a > call to clojure.core/print-method. This is a multimethod that > dispatches on the result of clojure.core/type, which is the value of > the :type tag in the metadata if there is