newbie question about the difference of proxy [Runnable] and fn

2012-07-06 Thread grahamke
ln "I ran!"))) "tName")) The first function returns nil and prints I ran! to the repl window in eclipse. The second function doesn't return anything and prints I ran! to the console. What is it about proxy that changes the behavior? When I use proxy does the Java &qu

A question on Clojure precision

2012-07-30 Thread grahamke
I was testing some of the code in Miclael Fogus & Chris Houser's The Joy of Clojure and found this: Clojure 1.4.0 user=> (let [a (+ 0.1 0.1M 0.1M 0.1M 0.1M 0.1M 0.1M 0.1M 0.1M 0.1M)] (println (class a)) a) java.lang.Double 0. user=> (let [b (+ 0.1M 0.1M 0.1M 0.1M 0.1M 0.1M 0.