user=> (defn fac [n] (loop [n n r 1] (if (= n 1) r (recur (dec' n) (*' r n))))) NO_SOURCE_FILE:5 recur arg for primitive local: r is not matching primitive, had: Object, needed: long Auto-boxing loop arg: r #'user/fac user=> (fac 40) 815915283247897734345611269596115894272000000000N
Might I suggest that this message be augmented to include the recommended course of action, or at least a pointer to docs?
I can easily imagine a stream of confused people a year or so from now wondering how they can either (a) get the recur arg to match the primitive local, or (b) get a non-primitive local.
-- 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