A theory of substructural types and control

Jesse A. Tov*, Riccardo Pucella

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

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 languageEnglish (US)
Pages (from-to)625-641
Number of pages17
JournalACM SIGPLAN Notices
Volume46
Issue number10
DOIs
StatePublished - Oct 2011

Keywords

  • Languages

ASJC Scopus subject areas

  • General Computer Science

Fingerprint

Dive into the research topics of 'A theory of substructural types and control'. Together they form a unique fingerprint.

Cite this