Modal effect types

Wenhao Tang, Leo White, Stephen Dolan, Daniel Hillerström, Sam Lindley, Anton Lorenzen

Research output: Contribution to journalArticlepeer-review

Abstract

Effect handlers are a powerful abstraction for defining, customising, and composing computational effects. Statically ensuring that all effect operations are handled requires some form of effect system, but using a traditional effect system would require adding extensive effect annotations to the millions of lines of existing code in these languages. Recent proposals seek to address this problem by removing the need for explicit effect polymorphism. However, they typically rely on fragile syntactic mechanisms or on introducing a separate notion of second-class function. We introduce a novel approach based on modal effect types.
Original languageEnglish
Article number120
Pages (from-to)1130-1157
Number of pages28
JournalProceedings of the ACM on Programming Languages
Volume9
Issue numberOOPSLA1
DOIs
Publication statusPublished - 9 Apr 2025

Keywords / Materials (for Non-textual outputs)

  • effect handlers
  • effect types
  • modal types
  • multimodal type theory

Fingerprint

Dive into the research topics of 'Modal effect types'. Together they form a unique fingerprint.

Cite this