assert inside an if-let

2014-11-19 Thread László Török
Hi, the following form doesn't compile and I see no reason why it shouldn't: (if-let [a a] a (assert a)) IMHO it is a bug. If anyone is of a different opinion please share. Thanks, -- László Török -- You received this message because you are subscribed to the Google Groups Clojure group.

Re: assert inside an if-let

2014-11-19 Thread László Török
mea culpa, thanks, i should read the docs more closely next time 2014-11-19 14:47 GMT+00:00 Niels van Klaveren niels.vanklave...@gmail.com: From the docs If test is true, evaluates then with binding-form bound to the value of test, if not, yields else. So a is NEVER bound within the else

Re: assert inside an if-let

2014-11-19 Thread Niels van Klaveren
From the docs If test is true, evaluates then with binding-form bound to the value of test, if not, yields else. So a is NEVER bound within the else block, and can't compile. On Wednesday, November 19, 2014 3:34:13 PM UTC+1, Las wrote: Hi, the following form doesn't compile and I see no