Work

Effectful Software Contracts

Year: 2024
Type: article
Abstract: Software contracts empower programmers to describe functional properties of components. When it comes to constraining effects, though, the literature offers only one-off solutions for various effects. It lacks a universal principle. This paper presents the design of an effectful contract system in the context of effect handlers. A key metatheorem shows that contracts cannot unduly interfere with a program’s execution. An implementation of this design, along with an evaluation of its generality, demonstrates that the theory can guide practice.
Language: English
Subfield: Software
Open Access status: diamond
OpenAlex ID: W4390603516
FWCI: 1.183
Cites: 63
Cited by: 5
Related to: 10