Effectful Software Contracts
Effectful Software Contracts
复制标题
DOI:
10.1145/3632930
复制
发表时间:
2024-01-01
影响因子:
1.8
通讯作者:
Felleisen,Matthias
中科院分区:
文献类型:
--
作者:
Moy,Cameron;Dimoulas,Christos;Felleisen,Matthias
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.