On 30 December 2011 17:42, Peter Taoussanis <ptaoussa...@gmail.com> wrote: >> It would be nice if there was an option to make deep-freeze >> interchangable with read/pr. > > Hmm- I don't follow. Interchangeable how? Could you explain what use > you have in mind?
Well, currently it's not directly interchangeable because deep-freeze dereferences atoms and refs, whilst the core read and pr functions do not. I think it might be more useful if freeze/thaw worked on the same domain as read/pr by default. That way I can swap in and out different serialization functions without altering the behaviour of the application. I'm also not really sold on serializing atoms and refs. If I serialize a data structure like [1 2 3], then when I deserialize it I get back a structure that can be substituted for the original. But if I serialize an atom, then when I deserialize it I get a completely different atom containing the same data, one which cannot be substituted for the original. I guess what I'd like a mode where I can say "act like read/pr" and for deep-freeze to ignore metadata, refs and atoms. - James -- 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