Abstract
This paper define the semantics of MinAML, an idealized aspect-oriented programming language, by giving a type-directed translation from its user-friendly external language to its compact, well-defined core language. We argue that our framework is an effective way to give semantics to aspect-oriented programming languages in general because the translation eliminates shallow syntactic differences between related constructs and permits definition of a clean, easy-to-understand, and easy-to-reason-about core language. The core language extends the simply-typed lambda calculus with two central new abstractions: explicitly labeled program points and first-class advice. The labels serve both to trigger advice and to mark continuations that the advice may return to. These constructs are defined orthogonally to the other features of the language and we show that our abstractions can be used in both functional and object-oriented contexts. The labels are well-scoped and the language as a whole is well-typed. Consequently, programmers can use lexical scoping in the standard way to prevent aspects from interfering with local program invariants.
Original language | English (US) |
---|---|
Pages | 127-139 |
Number of pages | 13 |
DOIs | |
State | Published - 2003 |
Event | Eighth ACM SIGPLAN International Conference on Functional Programming - Uppsala, Sweden Duration: Aug 25 2003 → Aug 29 2003 |
Other
Other | Eighth ACM SIGPLAN International Conference on Functional Programming |
---|---|
Country/Territory | Sweden |
City | Uppsala |
Period | 8/25/03 → 8/29/03 |
All Science Journal Classification (ASJC) codes
- Software
Keywords
- Aspect-oriented Programming
- Aspects
- Operational Semantics
- Type Theory