Looks like its already done: https://www.assembla.com/spaces/clojure/tickets/103-gc-issue-99--incorrect-error-with-if-let
On 20 October 2010 22:20, David Jagoe <[email protected]> wrote: > Hi all, > > I noticed today (clojure 1.2) that using if-let incorrectly thusly: > > (if-let [a 1] > (println "1") > (println "2") > (println "3")) > > Instead of e.g. > > (if-let [a 1] > (println "1") > (do > (println "2") > (println "3"))) > > Results in this error > > if-let requires a vector for its binding > [Thrown class java.lang.IllegalArgumentException] > > When we would expect something like this > > Too many arguments to if-let > [Thrown class java.lang.Exception] > > Should I raise this in assembla? > > > Thanks, > David > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. 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
