halgari/clojure-py — pull request #139 by lfranchi (2012-10-18 19:35:45+00:00)
Title: Fix compiling of try statements to allow implicit-do body

try should allow any number of body statements, and return the value returned from executing the last one.

I'm not to happy with the try/except method to see if the subform is iterable/countable (so to check if it's a catch/finally block). Alternatives definitely appreciated, I couldn't come up with a better solution.

Also, I couldn't find any mention of the clojure language supporting else in a try, like (try ... (catch ...) (else...)), so I'm not sure what the deal is with that. I couldn't get any tests using else to pass either, so I left it alone.

Comments appreciated!