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

Reader should resolve unqualified symbols inside syntax quoting #54

Open
ingydotnet opened this issue Jul 27, 2023 · 1 comment
Open
Labels

Comments

@ingydotnet
Copy link
Collaborator

Clojure:

user=> `(foo bar)
(user/foo user/bar)

Lingy (currently):

user=> `(foo bar)
(foo bar)
@ingydotnet ingydotnet added the bug label Jul 27, 2023
@ingydotnet
Copy link
Collaborator Author

See: https://8thlight.com/insights/quoting-without-confusion

When you write a symbol inside a syntax-quoted form, the reader will actually resolve the symbol rather than just taking it at face value. The result is that namespace-qualified symbols are the norm in a syntax-quoted form:
...
This has important implications for macro writing that are outside the scope of this article, so this namespace qualification is worth remembering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant