Experts has a new look! Let us know what you think of the updates.

Provide feedback
Home
Scholarly Works
Macros as multi-stage computations
Journal article

Macros as multi-stage computations

Abstract

With few exceptions, macros have traditionally been viewed as operations on syntax trees or even on plain strings. This view makes macros seem ad hoc, and is at odds with two desirable features of contemporary typed functional languages: static typing and static scoping. At a deeper level, there is a need for a simple, usable semantics for macros. This paper argues that these problems can be addressed by formally viewing macros as multi-stage …

Authors

Ganz SE; Sabry A; Taha W

Journal

ACM SIGPLAN Notices, Vol. 36, No. 10, pp. 74–85

Publisher

Association for Computing Machinery (ACM)

Publication Date

October 2001

DOI

10.1145/507669.507646

ISSN

0362-1340