计算机科学 > 程序设计语言
[提交于 2023年7月11日]
标题:Simple Reference Immutability for System F-sub
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Edward Lee[v1] 2023年7月11日 星期二 01:42:10 UTC