Open mitch-kyle opened 2 weeks ago
are there any performance benefits to using loop
over fn
? because if not, a quick fix for this could be to define loop
like:
(defmacro loop
[bindings & body]
`((fn ~(vec (take-nth 2 bindings))
~@body)
~@(take-nth 2 (rest bindings))))
I'm getting a RecursionError trying to build functions with
loop
. It looks like the bindings from subsequent iterations are leaking into created functions.This form shows the bug.
Expected Result:
Actual Result: