On Thu, Mar 10, 2011 at 11:26 PM, Jarl Haggerty <jarlhagge...@gmail.com> wrote:
> Hmm, I should have thought of that.
>
> New Clojure:
>
> (ns hello.test
>  (import org.jbox2d.common.Vec2)
>  (:gen-class))
>
> (defn -main [& args]
>  (dotimes [q 5]
>    (let [#^Vec2 a (Vec2. 1 2)
>          #^Vec2 b (Vec2. 3 4)]
>      (time (loop [x (int 0)]
>              (when (< x (int 1e9))
>                (.addLocal a b)
>                (recur (unchecked-inc x))))))))

I think if you turn on reflection warnings and remove those type
hints, you'll find those hints aren't useful.  In which case I'd
recommend leaving them out.

--Chouser

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