-
Notifications
You must be signed in to change notification settings - Fork 120
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
Don't rewrite ~ @foo
to ~@foo
#345
Don't rewrite ~ @foo
to ~@foo
#345
Conversation
093930a
to
d2522f3
Compare
Thanks for the bug report, and the PR. Can you explain why you used a volatile? I don't understand why it's necessary. Also, why is |
Starting with the premise of using It would be better to have just one walk but I didn't know the best way to do this.
This part is up to you. My thought was: it's a really strange example of nested syntax that requires a space between the container and the child. I can't think of any other examples like it. My idea with |
I think I'd like to know why cljfmt is removing the space in the first place. In the PR, code is changed for |
Ah, I misinterpreted |
@weavejester seems to work! |
Much better! I don't think I have any more notes. Could you squash your commits down? |
1f8cda5
to
7734fe2
Compare
Done. |
The problem is
~ @foo
is being reformatted to~@foo
, a different expression.~,@foo
is used as the canonical form because it seems to have more emphasis and stability than~ @foo
(just by my taste, lmk).This decision has knock-on effects if there are are other forms between
~
and@
which are demonstrated in the tests.The implementation uses
transform
twice, but it should ideally just be one tree pass. Please let me know if there's a preferred way to do this.