Re: Automatic upcasting from int to double.

2009-01-19 Thread Timothy Pratley
While it doesn't answer your more general question, just pointing out there is a Clojure min: user=> (min 0 0.2) 0 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Automatic upcasting from int to double.

2009-01-19 Thread CuppoJava
Just wondering if this behavior is by design: (Math/min 0 0.2) java.lang.IllegalArgumentException: No matching method found: min (NO_SOURCE_FILE:0) (Math/min 0.0 0.2) 0.0 Coming from Java, it just stuck out to me, since Java has automatic upcasting. Thanks -Patrick --~--~-~--~~--