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

Improve quasiquote testing and docs #2493

Merged
merged 8 commits into from
Aug 16, 2023
Merged

Conversation

Kodiologist
Copy link
Member

After a lot of soul-searching and adding a few more tests, I've decided that the way Hy does quasiquotation is correct, or at least, correct enough.

I was pointed to a pretty thorough test suite of quasiquotation in Common Lisp, but translating it to Hy looks intimidating, so I'm not going to take that on before I'm convinced that we need even more tests than what I've added here.

Copy link
Member

@scauligi scauligi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow trying to work through the Bawden tests really bends my brain

@Kodiologist
Copy link
Member Author

Kodiologist commented Aug 13, 2023

In hindsight, test-nested-quasiquote--var-from-above and test-nested-quasiquote--macro-writing-macro may be redundant.

@Kodiologist
Copy link
Member Author

I've opted to keep both, but I've renamed and reordered them a bit to make their similarities clearer.

@Kodiologist Kodiologist merged commit f9df10b into hylang:master Aug 16, 2023
9 checks passed
@Kodiologist Kodiologist deleted the quasiquote branch November 2, 2023 15:59
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

Successfully merging this pull request may close these issues.

Nested unquotes leave behind extra unquote forms
2 participants