arXiv · 2307.04960
Simple Reference Immutability for System F-sub
Abstract
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.
Explore related subjects
Keep this discovery
Edward Lee, Ondřej Lhoták. 2023-07-11. Simple Reference Immutability for System F-sub. https://doi.org/10.1145/3622828
Cite the original work for its findings. Save a collection to share your selection of sources.