Closed ikappaki closed 8 months ago
The fix would likely be this:
if name.meta is None:
name = name.with_meta(lmap.EMPTY)
...though I am not convinced even if Clojure allows this anyone should be doing this. def
names should come from code given by users (whose meta should already exist or can be copied via with-meta
in the macro definition).
basilisp throws an error when trying to define a symbol in a macro using syntax quoting:
AttributeError: 'NoneType' object has no attribute 'update'
To reproduce
The same works in Clojure
Looking at the analyzer code where the exception is thrown, I am not sure what the correct solution is (should there be a check if
name
comes with metadata before trying to update it? should the symbol have some metadata attached to it to begin with and thus the issue lies elsewhere?).Thanks