3.21 Syntax Quoting: quote-syntax
syntax
(quote-syntax datum)
(quote-syntax datum #:local)
When #:local is specified, than all scopes in the syntax object’s lexical information is preserved. When #:local is omitted, then the scope sets within datum are pruned to omit the scope for any binding form that appears between the quote-syntax form and the enclosing top-level context, module body, or phase level crossing, whichever is closer.
Unlike syntax (#'), quote-syntax does not substitute pattern variables bound by with-syntax, syntax-parse, or syntax-case.
Examples: | ||||||||||||||||||
|
Changed in version 6.3 of package base: Added scope pruning and support for #:local.