Abstract
Exceptions are invaluable for structured error handling in high-level languages, but they are at odds with linear types. More generally, control effects may delete or duplicate portions of the stack, which, if we are not careful, can invalidate all substructural usage guarantees for values on the stack. We have developed a type-and-effect system that tracks control effects and ensures that values on the stack are never wrongly duplicated or dropped. We present the system first with abstract control effects and prove its soundness. We then give examples of three instantiations with particular control effects, including exceptions and delimited continuations, and show that they meet the soundness criteria for specific control effects..
Original language | English (US) |
---|---|
Pages (from-to) | 625-641 |
Number of pages | 17 |
Journal | ACM SIGPLAN Notices |
Volume | 46 |
Issue number | 10 |
DOIs | |
State | Published - Oct 2011 |
Keywords
- Languages
ASJC Scopus subject areas
- General Computer Science