计算机科学 > 程序设计语言
[提交于 2022年2月14日]
标题:Enhancing expressivity of checked corecursive streams (extended version)
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We propose a novel approach to stream definition and manipulation. Our solution is based on two key ideas. Regular corecursion, which avoids non termination by detecting cyclic calls, is enhanced, by allowing in equations defining streams other operators besides the stream constructor. In this way, some non-regular streams are definable. Furthermore, execution includes a runtime check to ensure that the stream generated by a function call is well-defined, in the sense that access to an arbitrary index always succeeds. We extend the technique beyond the simple stream operators considered in previous work, notably by adding an interleaving combinator which has a non-trivial recursion scheme.
提交历史
来自:Pietro Barbieri[v1] 2022年2月14日 星期一 16:54:58 UTC