Re: type hinting the arguments of a function ..

2010-12-30 Thread Sunil S Nandihalli
thanks David and Ben for you responses.. Sunil. On Wed, Dec 29, 2010 at 9:47 PM, David Nolen dnolen.li...@gmail.com wrote: On Wed, Dec 29, 2010 at 10:48 AM, B Smith-Mannschott bsmith.o...@gmail.com wrote: - (defn f [[^double x]] x) The compiler (1.3) does not complain about this, though I

Re: type hinting the arguments of a function ..

2010-12-29 Thread B Smith-Mannschott
(In Clojure 1.3-alpha-3, which I happen to have lying around): double is a function, not a class. So, Clojure responds: CompilerException java.lang.IllegalArgumentException: Unable to resolve classname ... (defn f [^double x] x) ; does not work because double is not a class (defn f

Re: type hinting the arguments of a function ..

2010-12-29 Thread David Nolen
On Wed, Dec 29, 2010 at 6:59 AM, B Smith-Mannschott bsmith.o...@gmail.comwrote: (In Clojure 1.3-alpha-3, which I happen to have lying around): double is a function, not a class. So, Clojure responds: CompilerException java.lang.IllegalArgumentException: Unable to resolve classname ...

Re: type hinting the arguments of a function ..

2010-12-29 Thread B Smith-Mannschott
On Wed, Dec 29, 2010 at 16:10, David Nolen dnolen.li...@gmail.com wrote: On Wed, Dec 29, 2010 at 6:59 AM, B Smith-Mannschott bsmith.o...@gmail.com wrote: (In Clojure 1.3-alpha-3, which I happen to have lying around): double is a function, not a class. So, Clojure responds: