Closed
Description
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