I can add some additional information. I compiled the fibonacci example 
with double and long type hints:

(defn fib ^long [^long n]
  (if (<= n 1) 1 (+ (fib (dec n)) (fib (- n 2)))))

(defn fib ^double [^double n]
  (if (<= n 1) 1 (+ (fib (dec n)) (fib (- n 2)))))

The one with ^long works as expected but the one with ^double has the 
Double.valueOf(result).
doubleValue() bytecode before the return.

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

Reply via email to