Practical typed lazy contracts
Practical typed lazy contracts
复制标题
实用的类型化惰性合约
DOI:
--
复制
发表时间:
2012
期刊:
影响因子:
--
通讯作者:
O. Chitil
中科院分区:
文献类型:
--
作者:
O. Chitil
Until now there has been no support for specifying and enforcing contracts within a lazy functional program. That is a shame, because contracts consist of pre- and post-conditions for functions that go beyond the standard static types. This paper presents the design and implementation of a small, easy-to-use, purely functional contract library for Haskell, which, when a contract is violated, also provides more useful information than the classical blaming of one contract partner. From now on lazy functional languages can profit from the assurances in the development of correct programs that contracts provide.