(defn foo [x y z] (let [x (long x) y (long y) z (long z)]) (loop [a false b (long 0)] (if a b (recur true (+ x (+ y z)))))) NO_SOURCE_PATH:1 recur arg for primitive local: b is not matching primitive, had: Object, needed: long Auto-boxing loop arg: b
What the fuh? Binary + with primitive args is supposed to produce primitive output. The auto-promoting +' and ternary-plus + are the ones that are supposed to produce Object. What gives? -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.