For example:

This is a small snippet from a reagent based ClojureScript program. The problem 
ist that it is sometimes very hard to track down certain errors. For example 
writing  (nth pages @index)) instead of  (nth @pages @index) gives:   Uncaught 
Error: nth not supported on this type reagent.atom/RAtom pointing to the file 
utils.cljs. Is there a way to make it easier for me to find the source of the 
exception ? Just knowing that an exception happened in the reagent source is 
not very helpful.

Example:

(defn render-loop [pages]
    (fn []
      (renderer/render-page (nth @pages @index)))))

(defn main-page
  []
  (render-loop pages))

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