2 ms·
loop-recur has its good points, but it has its limitations, too. To wit, recur is not allowed inside a catch or finally form. (At least in Clojure 1.0.0.) By ex
by gcv 17y ago
loop-recur has its good points, but it has its limitations, too. To wit, recur is not allowed inside a catch or finally form. (At least in Clojure 1.0.0.) By extension, this precludes the use of for, dotimes, doseq, and any other macro which expands into loop-recur. Luckily, calling an external function does work, so exception recovery which happens to require a loop is possible.