• Media type: E-Article
  • Title: Environment classifiers
  • Contributor: Taha, Walid; Nielsen, Michael Florentin
  • Published: Association for Computing Machinery (ACM), 2003
  • Published in: ACM SIGPLAN Notices, 38 (2003) 1, Seite 26-37
  • Language: English
  • DOI: 10.1145/640128.604134
  • ISSN: 0362-1340; 1558-1160
  • Keywords: Computer Graphics and Computer-Aided Design ; Software
  • Origination:
  • Footnote:
  • Description: <jats:p> This paper proposes and develops the basic theory for a new approach to typing multi-stage languages based a notion of <jats:italic>environment classifiers</jats:italic> . This approach involves explicit but lightweight tracking -- at type-checking time -- of the origination environment for future-stage computations. Classification is less restrictive than the previously proposed notions of closedness, and allows for both a more expressive typing of the "run" construct and for a unifying account of typed multi-stage programmin.The proposed approach to typing requires making cross-stage persistence (CSP) explicit in the language. At the same time, it offers concrete new insights into the notion of levels and in turn into CSP itself. Type safety is established in the simply-typed setting. As a first step toward introducing classifiers to the Hindley-Milner setting, we propose an approach to integrating the two, and prove type preservation in this setting. </jats:p>