On Tue, Sep 14, 2010 at 2:35 PM, Belun <alexandrurep...@gmail.com> wrote: > why isn't the type of a function : clojure.lang.IFn ? >
Actually you assume the existence of an unique type. In most OO-language, and Clojure inherits that from its host, an object has multiple types. Indeed an object can be seen as of type its class or any of its super-class or any of the interface it implements. (Formally a : T' and T' < T => a < T). When you asked with type, clojure answer the most specific type. The class it has created for this function compilation. However, if you ask instance?, you should see that any function implements IFn. Best, Nicolas. -- 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