当前位置: X-MOL 学术J. Funct. Program. › 论文详情
Our official English website, www.x-mol.net, welcomes your feedback! (Note: you will need to create a separate account there.)
Trace contracts
Journal of Functional Programming ( IF 1.1 ) Pub Date : 2023-12-13 , DOI: 10.1017/s0956796823000096
CAMERON MOY , MATTHIAS FELLEISEN

Behavioral software contracts allow programmers to strengthen the obligations and promises that they express with conventional types. They lack expressive power, though, when it comes to invariants that hold across several function calls. Trace contracts narrow this expressiveness gap. A trace contract is a predicate over the sequence of values that flow through function calls and returns. This paper presents a principled design, an implementation, and an evaluation of trace contracts.

中文翻译:

追踪合约

行为软件契约允许程序员加强他们用传统类型表达的义务和承诺。然而,当涉及到跨多个函数调用的不变量时,它们缺乏表达能力。跟踪合约缩小了这种表达能力的差距。跟踪契约是对流经函数调用和返回的值序列的谓词。本文介绍了跟踪合约的原则设计、实现和评估。
更新日期:2023-12-13
down
wechat
bug