It tried the following in REPL and got no error. Personally, I feel that I should get an error because calling square on strings is wrong in both cases.
Is there a way out of this in Clojure? (defn square [n] (* n n)) (if (= 0 0) (println "hello") (map square ["a" "b"])) The following gives error (because it gets evaluated): (defn square [n] (* n n)) (if (= 0 1) (println "hello") (map square ["a" "b"])) Thanks, Ajay -- 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