cisco / ChezScheme

Chez Scheme
Apache License 2.0
6.89k stars 983 forks source link

Syntax quoting #775

Closed mnieper closed 7 months ago

mnieper commented 7 months ago

This contribution adds the quote-syntax form to the language. This form, which can also be found in Racket and Guile, is like syntax but does not substitute pattern variables. (In fact, quote-syntax is like the syntax form from the R4RS appendix.)

The quote-syntax can be helpful for macro writers when the quoted datum's contents are not controlled by the macro and unwanted capture of pattern variables has to be avoided.