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

Issue with #py data reader tag in macros #1129

Closed
ikappaki opened this issue Nov 17, 2024 · 0 comments · Fixed by #1132
Closed

Issue with #py data reader tag in macros #1129

ikappaki opened this issue Nov 17, 2024 · 0 comments · Fixed by #1132
Assignees
Labels
component:reader Issue pertaining to Basilisp reader module issue-type:bug Something isn't working

Comments

@ikappaki
Copy link
Contributor

Hi,

it appears that #py data reader tag does not work within macros:
No data reader found for tag #basilisp.user/py

To reproduce:

  • Open up the REPL and attempt to create a macro that uses #py, it fails with the above error
basilisp.user=> (defmacro issue [] `(println #py [1 2]))
  exception: <class 'basilisp.lang.reader.SyntaxError'>
    message: No data reader found for tag #basilisp.user/py
       line: 1:38

I would expect the #py tag to work within macros, as I can't see a reason why it shouldn't at the language level.

Workaround is to use the python/* built ins, such as python/tuple.

Thanks

@chrisrink10 chrisrink10 added issue-type:bug Something isn't working component:reader Issue pertaining to Basilisp reader module labels Nov 18, 2024
@chrisrink10 chrisrink10 self-assigned this Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:reader Issue pertaining to Basilisp reader module issue-type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants