Re: why doesn't a function have a type ?

2010-09-16 Thread Thierry Pirot
Belun writes: > why isn't the type of a function : clojure.lang.IFn ? > it's this instead : > user=> (type #(str "wonder" "what" "this" "is")) > user$eval7$fn__8 user> (class #(str "wonder" "what" "this" "is")) user$eval3515$fn__3516 user> (pprint1 (ancestors *1)) #{clojure.lang.Fn clojure.lang.

Re: why doesn't a function have a type ?

2010-09-14 Thread Nicolas Oury
On Tue, Sep 14, 2010 at 2:35 PM, Belun 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 clas

why doesn't a function have a type ?

2010-09-14 Thread Belun
why isn't the type of a function : clojure.lang.IFn ? it's this instead : user=> (type #(str "wonder" "what" "this" "is")) user$eval7$fn__8 would love if you would answer here : http://stackoverflow.com/questions/3708516/what-type-is-a-function thanks, alex -- You received this message beca