On Oct 3, 2009, at 1:50 PM, Stuart Halloway wrote:
Is there a principled reason for this? I have written some code that (unintentionally) limits itself to refs because it assumes that all reference types can sit in function position.
This discussion: http://groups.google.com/group/clojure/browse_thread/thread/534dd074f18851absuggests that reference types implementing IFn isn't the intended behavior.
Using deref or @ works with all reference types: user> (defn my-fn [x] (+ x 3)) #'user/my-fn user> (def my-agent (agent my-fn)) #'user/my-agent user> (@my-agent 4) 7 --Steve
smime.p7s
Description: S/MIME cryptographic signature