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

Macros, hygienic or not #3

Open
aartaka opened this issue Oct 18, 2023 · 0 comments
Open

Macros, hygienic or not #3

aartaka opened this issue Oct 18, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@aartaka
Copy link
Contributor

aartaka commented Oct 18, 2023

Things like typecheck and define-api need to be macros instead of functions. Things like class+method definitions (that define-api depends on) and JSON destructuring (see njson:jbind) would benefit from macros too.

It's too early to make macros—the whole things is still a melting pot of ideas. But it'll definitely a future direction once all the unknowns are figured out.

Another reason to wait: Scheme has syntax-case, which is notoriously unintuitive. Using it would be terribly for maintainability. Guile has a more familiar defmacro, but I haven't yet researched it properly.

@aartaka aartaka added the enhancement New feature or request label Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant