What I was trying to say (I think) is the need for shared mutable state be it 
in an atom or in a DOM tree puts in doubt the idea that immutability in and by 
itself is of great benefit. 

I'm trying to find out how immutability and mutability can co-exist without 
undermining each other conceptually. I am sure there are many sane patterns.

Sent from my iPhone

> On Jul 4, 2015, at 5:20 AM, Marc Fawzi <[email protected]> wrote:
> 
> Ah, the atom example is not about race conditions (doesn't happen in either 
> CLJ or CLJS for different reasons, compare-and-set! in former and single 
> threaded environment in latter) but it's about having more than one reference 
> to the same mutable value which could lead to chaos/confusion when debugging 
> as to which part of the program is changing a given value in the atom... 
> Makes sense, or am I conflating things? 
> 
>> On Sat, Jul 4, 2015 at 4:51 AM, Leon Grapenthin <[email protected]> 
>> wrote:
>> It seems like you do understand things clearly already. Your observations 
>> are correct. I don't really understand your atom example, though.
>> 
>> --
>> Note that posts from new members are moderated - please be patient with your 
>> first post.
>> ---
>> You received this message because you are subscribed to the Google Groups 
>> "ClojureScript" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/clojurescript.
> 

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to