Ensuring Streams Flow
Ensuring Streams Flow
复制标题
确保溪流畅通
DOI:
10.1007/bfb0000493
复制
发表时间:
1997
影响因子:
3.2
通讯作者:
D. Turner
中科院分区:
文献类型:
--
作者:
Alastair J. Telford;D. Turner
It is our aim to develop an elementary strong functional programming (ESFP) system. To be useful, ESFP should include structures such as streams which can be computationally unwound infinitely often. We describe a syntactic analysis to ensure that infinitely proceeding structures, which we shall term codata, are productive. This analysis is an extension of the check for guardedness that has been used with definitions over coinductive types in Martin-Lof's type theory and in the calculus of constructions. Our analysis is presented as a form of abstract interpretation that allows a wider syntactic class of corecursive definitions to be recognised as productive than in previous work. Thus programmers will have fewer restrictions on their use of infinite streams within a strongly normalizing functional language.