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

A strange operation for "as->" macro. #1255

Closed
youngsu999 opened this issue Mar 21, 2017 · 3 comments
Closed

A strange operation for "as->" macro. #1255

youngsu999 opened this issue Mar 21, 2017 · 3 comments
Labels

Comments

@youngsu999
Copy link

In the document for as->, the example code expected following output.

=> (as-> 0 it
...      (inc it)
...      (inc it))
2

However, I got the following result.

=> (as-> 0 it
... (inc it)
... (inc it))
(2, 2, 2)
=>
@Kodiologist
Copy link
Member

This bug still exists in master but is fixed by pull request #1246. I'm hoping that will be merged soon.

@refi64
Copy link
Contributor

refi64 commented Mar 21, 2017

@Kodiologist Wrong PR #? The issue here is that the docs are showing a single integer as the return value instead of a tuple, which doesn't really have much to do with your REPL PR...

@Kodiologist
Copy link
Member

Kodiologist commented Mar 21, 2017

@kirbyfan64 No, that's the right PR. Try it. Apparently, the bug was fixed as a consequence of how I changed the internals of the HyREPL class.

Kodiologist added a commit to Kodiologist/hy that referenced this issue Mar 21, 2017
Kodiologist added a commit to Kodiologist/hy that referenced this issue Mar 21, 2017
Kodiologist added a commit to Kodiologist/hy that referenced this issue Mar 24, 2017
@refi64 refi64 closed this as completed in 5db0fbf Mar 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants