I had (foolishly?) assumed that the whole app wouldn't even render properly and 
throw a bunch of exceptions if the root atom contained a non-associative data 
structure. And so we wouldn't ever arrive at the event handler, thus 
'guaranteed' (maybe 'probable' would have been a better word).


On Monday, September 8, 2014 10:57:54 PM UTC+2, David Nolen wrote:
> On Mon, Sep 8, 2014 at 4:55 PM, stephanos <[email protected]> wrote:
> 
> > I just found this in the Om wiki: "Everything in the atom should be an 
> > associative data structure - either a ClojureScript map or indexed 
> > sequential data structure such as a vector."
> 
> >
> 
> > Isn't it then guaranteed that 'todos' in the transact! update function is 
> > always an associative data structure? Or is the use of 'vec' just to 'play 
> > it safe'? It seems to work without it in this example.
> 
> >
> 
> > I'm just trying to understand, not nitpick :)
> 
> 
> 
> Guaranteed how?
> 
> 
> 
> David

-- 
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