Syntactic closure
In computer science, syntactic closures are an implementation strategy for a hygienic macro system. The term pertains to the Scheme programming language.{{cite web |url=https://people.csail.mit.edu/jaffer/slib/Syntactic-Closures.html |title=A Syntactic Closures Macro Facility |last=Hanson |first=Chris |date=November 9, 1991 |website=CSAIL |publisher=MIT |access-date=February 24, 2021 }}
When a syntactic closure is used the arguments to a macro call are enclosed in the current environment, such that they cannot inadvertently reference bindings introduced by the macro itself.
References
{{Reflist}}
External links
- [https://web.archive.org/web/20170706111758/ftp://ftp.cs.utexas.edu//pub/garbage/carl-msthesis.ps Syntactic exposures - A Lexically-Scoped Macro Facility for Extensible Compilers]
- [http://community.schemewiki.org/?syntactic-closures syntactic closures at Schemewiki]
Category:Implementation of functional programming languages
{{Compu-prog-stub}}
{{plt-stub}}