3 ms·
This is why R7RS has syntax-case. HOWEVER... various bugs can be easily introduced if your macros are not hygienic. For many use cases, syntax-rules will suffi
by bitwize 10y ago
This is why R7RS has syntax-case.
HOWEVER... various bugs can be easily introduced if your macros are not hygienic. For many use cases, syntax-rules will suffice, but when you use syntax-case you must explicitly break hygiene.
It is a parallel situation to languages like Rust where unsafe operations are sometimes required, and therefore provided by the language but you must explicitly flag them "unsafe".
- qwertyuiop924 10y agoThat's... very wrong. >This is why R7RS has syntax-case. It doesn't. In fact, sc-macro-transformer is a candidate for inclusion in r7rs-large. >HOWEVER... various bugs can be easily introduced if your macros are not hygienic. That's true, but you're confusing hygienic/unhygienic with imperative/declarative. sc-macro-transformer, syntax-case and friends are all hygienic imperative macro systems. So none of that matters.