On Tue, May 4, 2010 at 10:44 AM, Nicolas Oury <nicolas.o...@gmail.com>wrote:
> Dear all, > > I have a problem where a lot of concurrency could be gained by having > a tree of references. > ie a tree where each nodes contain a ref to a set of similar tree. > > (I know that having mutable trees is asking for troubles, but that is > quite necessary for the things I wish to do.) > > I read that > "The values placed in Refs must be, or be considered, immutable!! > Otherwise, Clojure can't help you." > > I put a lot of hope (and cross fingers) in the "be considered" part of > the sentence :). > > Under which conditions can you use a ref inside a ref? > What happens if you don't? For cultural purpose: what is the canonical > example of a problem? > > Best regards, > > Nicolas. I'm curious as to why you think you would get "more" concurrency by using refs in refs over using nested maps or vectors inside a single ref. Mind, I'm no Clojure concurrency expert. Curious to hear what other people think. David -- 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