System F-sub 的简单引用不可变性
Simple Reference Immutability for System F-sub
AI总结:
本文在混合语言背景下,将引用不可变性扩展至System F-sub,构建F-sub-M演算,并证明其满足健全性和不可变性安全属性。
摘要:
引用不可变性是一种基于类型的技术,用于控制可变性,长期以来在Java等面向对象语言的背景下被研究。然而,近年来,像Scala这样的语言模糊了函数式编程语言和面向对象编程语言之间的界限。我们探讨了引用不可变性如何与这些混合语言中常见的特性交互,特别是与高阶函数、多态性和子类型。我们构建了一个演算System F-sub-M,它将引用不可变性系统编码为F-sub的简单扩展,并证明了它满足标准的健全性和不可变性安全属性。
英文摘要:
Reference immutability is a type based technique for taming mutation that has long been studied in the context of object-oriented languages, like Java. Recently, though, languages like Scala have blurred the lines between functional programming languages and object oriented programming languages. We explore how reference immutability interacts with features commonly found in these hybrid languages, in particular with higher-order functions -- polymorphism -- and subtyping. We construct a calculus System F-sub-M which encodes a reference immutability system as a simple extension of F-sub and prove that it satisfies the standard soundness and immutability safety properties.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。