implicit renaming macros would be nice #2139
Shambles-Dev
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As seen here https://wiki.call-cc.org/explicit-renaming-macros (ignore the explicit variety).
They are just as powerful as Hy's current macros (you can explicitly break hygiene when you want), more concise, and safer.
Hy probably cannot keep the environment associated with a symbol after expansion (Python has no similar notion), but it could gensym any macro-inserted (not passed-through) symbols in binding positions that were not explicitly captured and compare bindings.
I would personally rather use these, even with the limitation I mentioned. Maybe they can at least be an option?
Beta Was this translation helpful? Give feedback.
All reactions