Re: eval'ing records

2011-04-16 Thread David McNeil
For those who duck it in the future, there is more discussion here: http://groups.google.com/group/clojure-dev/browse_thread/thread/f4907ebca8ef6e11 -David -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

eval'ing records

2011-04-14 Thread David McNeil
I have learned that instances of records do not eval to themselves. This seems inconsistent to me. I am curious if this is intentional or if it is a gap in the current record implementation in Clojure. Thanks. -David (defn eval-type [x] (class (eval x))) ;; instances of structural types

Re: eval'ing records

2011-04-14 Thread David McNeil
I remember reading about it in the Joy of Clojure. It may be fixed in the future versions of Clojure. Ivan - Thanks for the response. I checked Joy of Clojure and I see a reference at the top of page 191 to the fact that records cannot be printed and then eval'd. I was aware of this, however

Re: eval'ing records

2011-04-14 Thread Ivan Koblik
David, Sorry, I misunderstood your question at first. There was actually a discussion on it a couple of days ago: http://groups.google.com/group/clojure/browse_thread/thread/abb87a73330fdc01 Cheers, Ivan. On 14 April 2011 22:07, David McNeil mcneil.da...@gmail.com wrote: I remember reading