I started to play with cond-let in the contrib.cond package and got an
unexpected error:

user=> (cond-let [x (zero? 0)] (println "hello world"))
java.lang.Exception: Unsupported binding form: (zero? 0) (NO_SOURCE_FILE:11)

user=> (cond-let x (zero? 0) (println "hello world"))
hello world

Maybe it was overlooked when making the binding forms more
consistent?   Like:

user=> (when-let [x (zero? 0)] (println "hello world"))
hello world

user=> (if-let [x true] (println "hello world"))
hello world

--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to