Re: about dumping defrecords

2014-11-26 Thread Gary Verhaegen
On Wednesday, 26 November 2014, Tassilo Horn wrote: > Gary Verhaegen > writes: > > Hi Gary, > > > You should probably read the documentation about tagged literals to > > understand this better: > > > > http://clojure.org/reader#The%20Reader--Tagged%20Literals > > #user.P{:x 1, :y 2} is no tagged

Re: about dumping defrecords

2014-11-26 Thread Tassilo Horn
Gary Verhaegen writes: Hi Gary, > You should probably read the documentation about tagged literals to > understand this better: > > http://clojure.org/reader#The%20Reader--Tagged%20Literals #user.P{:x 1, :y 2} is no tagged literal. At least after defining (defrecord P [x y]), P records are pri

Re: about dumping defrecords

2014-11-26 Thread Gary Verhaegen
You should probably read the documentation about tagged literals to understand this better: http://clojure.org/reader#The%20Reader--Tagged%20Literals On Wednesday, 26 November 2014, Tassilo Horn wrote: > Vladimir Bokov > writes: > > > I really like that (pr some-hash-map) dumps structure which

Re: about dumping defrecords

2014-11-26 Thread Tassilo Horn
Vladimir Bokov writes: > I really like that (pr some-hash-map) dumps structure which can be > recognized by clojure reader like (def same-hash-map '..paste..here) > > Could it be achieved with defrecords? Currently (pr some-record) produced > non-recognizable by clojure reader at all. (Btw. why

Re: about dumping defrecords

2014-11-26 Thread Fluid Dynamics
On Wednesday, November 26, 2014 3:30:10 AM UTC-5, Vladimir Bokov wrote: > > I really like that (pr some-hash-map) dumps structure which can be > recognized by clojure reader like (def same-hash-map '..paste..here) > > Could it be achieved with defrecords? Currently (pr some-record) produced > non

about dumping defrecords

2014-11-26 Thread Vladimir Bokov
I really like that (pr some-hash-map) dumps structure which can be recognized by clojure reader like (def same-hash-map '..paste..here) Could it be achieved with defrecords? Currently (pr some-record) produced non-recognizable by clojure reader at all. (Btw. why so?) Could we do better? (e.g. u