-
Notifications
You must be signed in to change notification settings - Fork 372
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
Reimplement variadic if without recursion #1375
Conversation
I'd also like a test to make sure the wasted assignment isn't in the AST. You forgot a pair of square brackets in that import #851, but we could avoid the
This builds it inside-out just like your reduce. It's more imperative than functional, but we don't have all our functional tools yet it bootstrap. We should also consider removing |
I also noticed the tutorial says there's no |
You know, we could also get rid of the |
Agreed; the starred special forms that are supposed to be internal to Hy shouldn't be documented for users. |
Hy's multi-branch In Hy, Hy's |
And for |
Yup. That's a real pain point. I wish we could have a proper With the threading macros, unpacking, |
11aee2b
to
c185f43
Compare
@gilch I changed the implementation like you said.
Is this even really possible right now? |
I think so. Even at the native Hy level, we can get the AST compilation of a test form using |
Travis is showing a failure because the Python 3.5 job was canceled before it ran. You can probably get it to run the tests again with something like |
My guess is yes. You can try making a test in |
Let's see if Travis works now... |
Yay, it does. |
I'll take a crack at testing. |
Actually, I don't think it works. |
I should probably just check the number of elifs... |
@kirbyfan64, are you still working on this? |
I mean, I'm not sure what exactly is wrong because of the |
If you haven't already, I would try putting print statements in |
Whoops, my test case was wrong. ¯\(ツ)/¯ |
It still doesn't seem to work:
|
I'm closing this for inactivity. Please reopen it when you'd like eyeballs again. |
Closes #842. Agaaain.
@gilch How does this look?