Year: 2020
Type: article
Abstract: Reference mutability is a type-based technique for controlling mutation that has been thoroughly studied in Java. We explore how reference mutability interacts with the features of Scala by adding it to the Dependent Object Types (DOT) calculus. Our extension shows how reference mutability can be encoded using existing Scala features such as path-dependent, intersection, and union types. We prove type soundness and the immutability guarantee provided by our calculus.
Parent work: LIPIcs, Volume 166, ECOOP 2020, Complete Volume
Authors: Dort, Vlastimil, Lhoták, Ondřej
Institutions: Charles University, University of Waterloo
Language: English
Subfield: Software
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W3108611594
