-
Notifications
You must be signed in to change notification settings - Fork 4
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
Updates for recent Hy changes #13
Conversation
Beyond simple syntax and function signature updates, the biggest changes are in the handling/use of--the now missing--`cons`. Also, some rules have been added that reflect these Hy language changes, as well. They still need tests. A particularly good test/demo could involve the automatic application of these very changes! Perhaps only a subset could be reasonably performed, since some changes (e.g. the "lifting"/pulling out of `cons`es from quoted forms) aren't part of the current rulesets. We might be able to add them, or use the opportunity to demonstrate user-level modifications/additions to the rules.
8af38c7
to
f7e56e2
Compare
Otherwise, the We need a more sophisticated handling that can cover the old and the new patterns. We might get away with separating the old and the new style as configurable options (e.g. source and target version) and let the user pick up the slack. (That sounds lame, though.) Also, I'm trying to find a way to automatically add the |
There are already rules which aren't enabled by default, adding some more, behind a new flag does not sound wrong. To be honest, I quite like the idea of being able to specify a source and a target version. (Agree about the |
Exactly! I just wasn't sure if we would want/need some awareness of scope, but I suppose top-level could do the trick (except for macros, at least until hylang/hy#1682 goes through). |
By the way, I think I'll just disable the problematic stuff, let this PR fix the Hy language changes in the core library, and start another for the source, target parameter/flag and new rules. |
Beyond simple syntax and function signature updates, the biggest changes are in the handling/use of—the now missing—
cons
.Also, some rules have been added that reflect the Hy language changes made in this commit. Those additions still need tests.
A great test/demo of
hydiomatic
would be to use itself to apply the changes in this commit! Only a subset of changes could currently be performed with the ruleset additions; the other changes (e.g. the "lifting"/pulling out ofcons
es from quoted forms and additionalconde
s for the strictlist
type returned by thecons
helper function) haven't been added, yet. We might be able to add them, though, and/or use them as an opportunity to demonstrate user-level modifications/additions tohydiomatic
rules.