I'm a clojure newbie trying to understand when to use atoms versus refs. In clojure-http.resourcefully, if you use the with-cookies macro stores the cookies in a thread local ref. Why a ref and not an atom? My impression is that refs are for when you need to coordinate changes to more than one variable, or maybe if you need triggered validations.
Thanks, Steve -- 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