限定 System F-sub 的类型限定符
Qualifying System F-sub
AI总结:
本文提出 System F<:Q 演算,将 System F<: 的高阶有界多态性与类型限定符理论结合,并展示了该思想在引用不可变性、函数着色和捕获检查等场景中的可重用性。
摘要:
类型限定符提供了一种轻量级机制,用于丰富现有类型系统,以强制执行额外的、期望的程序不变量。它们通过提供一种受限但有效的子类型形式来实现这一点。虽然类型限定符的理论已被充分理解,并存在于当今许多编程语言中,但针对类型限定符的多态性是一个较少被研究的领域。我们通过构造一个演算 System F<:Q 来探索这种多态系统如何产生,该演算将 System F<: 的高阶有界多态性与类型限定符理论相结合。我们探索了用于构造 System F<:Q 的思想如何在类型限定符自然出现的场景中被重用——例如引用不可变性、函数着色和捕获检查。最后,我们根据在开发 System F<:Q 过程中提出的观察结果,重新审视了文献中的其他限定符系统。
英文摘要:
Type qualifiers offer a lightweight mechanism for enriching existing type systems to enforce additional, desirable, program invariants. They do so by offering a restricted but effective form of subtyping. While the theory of type qualifiers is well understood and present in many programming languages today, polymorphism over type qualifiers is an area that is less examined. We explore how such a polymorphic system could arise by constructing a calculus System F<:Q which combines the higher-rank bounded polymorphism of System F<: with the theory of type qualifiers. We explore how the ideas used to construct System F<:Q can be reused in situations where type qualifiers naturally arise -- in reference immutability, function colouring, and capture checking. Finally, we re-examine other qualifier systems in the literature in light of the observations presented while developing System F<:Q.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。