frenchy64/analyze — pull request #11 by chrismgray (2012-01-17 22:11:58+00:00)
Title: Tail recursion

Another example for the analyzer: this finds things that look like tail recursion and warns that they should be replaced by recur. (Nothing in the standard library needs this.)

There are two areas where this could be improved: first, it would be nice to track the arity of the part of the function being analyzed, so that spurious warnings from multi-arity functions would not happen. Second, it would be nice to check the entire function for fns inside that are tail-recursive without calling recur.