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

Add do-mac #2385

Merged
merged 4 commits into from
Jan 15, 2023
Merged

Add do-mac #2385

merged 4 commits into from
Jan 15, 2023

Conversation

Kodiologist
Copy link
Member

In place of a feature for one-shot reader macros, I've added a feature for one-shot regular macros, which I think will be what one wants more often. I named the new macro do-mac, somewhat arbitrarily.

In the subsequent commits, I use do-mac to replace pytest_ignore_collect chicanery with conditional existence of test functions that would fail to compile on certain versions of Python. The same thing could be done a bit more messily with macros, or at run-time with hy.eval.

@Kodiologist Kodiologist merged commit 29b751d into hylang:master Jan 15, 2023
@Kodiologist Kodiologist deleted the do-mac branch May 30, 2023 17:30
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.

Consider adding Common Lisp's Sharpsign-dot (#.) reader macro
1 participant