Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print-let doesn't compose with loop/recur #3

Open
sesm opened this issue Nov 26, 2013 · 1 comment
Open

print-let doesn't compose with loop/recur #3

sesm opened this issue Nov 26, 2013 · 1 comment

Comments

@sesm
Copy link

sesm commented Nov 26, 2013

Attempt to run the following toy example

(loop [n 10 res 0]
  (print-let [n2 (* n n )]
    (recur (dec n) (+ res n2))))

Gives the following result:

CompilerException java.lang.UnsupportedOperationException: Can only recur from tail position, ...
@AlexBaranosky
Copy link
Owner

@sesm thanks. This was a known issue, but I never got around to fixing it because usually I just live with it when debugging code and it isn't working for me :) But let me take a look at seeing if there's a way to fix it easily enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants