4 ms·
Defmacro isn't hygienic, while syntax- is. Is there way to use arbitrary names in hygienic syntax- macros?
by rmrfchik 2y ago
Defmacro isn't hygienic, while syntax- is.
Is there way to use arbitrary names in hygienic syntax- macros?
- shawn_w 2y agoIf you know the name ahead of time, syntax parameters[1] (if your scheme supports them) work well. syntax-case lets you break hygiene to insert new names in a controlled fashion (but has issues with names known ahead of time; see linked paper). Renaming macros do too, I believe. 1: http://scheme2011.ucombinator.org/papers/Barzilay2011.pdf http://scheme2011.ucombinator.org/papers/Barzilay2011.pdf
- bjoli 2y agosyntax-case can introduce arbitrary bindings using datum->syntax.