Overriding toString on defrecords

2012-01-11 Thread Mark Engelberg
This mechanism: (defrecord MyRecord [name] Object (toString [_] name)) no longer seems to control the way that records print at the repl. [It does control what happens when you say (str (MyRecord name)) but not when the repl prints it]. What's the current way to control the way that records

Re: Overriding toString on defrecords

2012-01-11 Thread Baishampayan Ghose
On Thu, Jan 12, 2012 at 11:51 AM, Mark Engelberg mark.engelb...@gmail.com wrote: This mechanism: (defrecord MyRecord [name] Object (toString [_] name)) no longer seems to control the way that records print at the repl. [It does control what happens when you say (str (MyRecord name)) but