In
computer science
Computer science is the study of computation, automation, and information. Computer science spans theoretical disciplines (such as algorithms, theory of computation, information theory, and automation) to practical disciplines (includin ...
, syntactic closures are an implementation strategy for a
hygienic macro system. The term pertains to the
Scheme programming language
Scheme is a dialect of the Lisp family of programming languages. Scheme was created during the 1970s at the MIT AI Lab and released by its developers, Guy L. Steele and Gerald Jay Sussman, via a series of memos now known as the Lambda Papers. It ...
.
When a syntactic closure is used the arguments to a
macro
Macro (or MACRO) may refer to:
Science and technology
* Macroscopic, subjects visible to the eye
* Macro photography, a type of close-up photography
* Image macro, a picture with text superimposed
* Monopole, Astrophysics and Cosmic Ray Observat ...
call are
enclosed
Enclosure or Inclosure is a term, used in English landownership, that refers to the appropriation of "waste" or "common land" enclosing it and by doing so depriving commoners of their rights of access and privilege. Agreements to enclose land ...
in the current environment, such that they cannot inadvertently reference
bindings introduced by the macro itself.
References
External links
*
tp://ftp.cs.utexas.edu/pub/garbage/carl-msthesis.ps Syntactic exposures - A Lexically-Scoped Macro Facility for Extensible Compilersbr>
syntactic closures at Schemewiki
Implementation of functional programming languages
{{plt-stub