License:
Creative Commons Attribution 3.0 Unported license (CC BY 3.0)
When quoting this document, please refer to the following
DOI: 10.4230/LIPIcs.ECOOP.2020.18
URN: urn:nbn:de:0030-drops-131755
URL: https://drops.dagstuhl.de/opus/volltexte/2020/13175/
Dort, Vlastimil ;
Lhoták, Ondřej
Reference Mutability for DOT
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.
BibTeX - Entry
@InProceedings{dort_et_al:LIPIcs:2020:13175,
author = {Vlastimil Dort and Ondřej Lhot{\'a}k},
title = {{Reference Mutability for DOT}},
booktitle = {34th European Conference on Object-Oriented Programming (ECOOP 2020)},
pages = {18:1--18:28},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-154-2},
ISSN = {1868-8969},
year = {2020},
volume = {166},
editor = {Robert Hirschfeld and Tobias Pape},
publisher = {Schloss Dagstuhl--Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/opus/volltexte/2020/13175},
URN = {urn:nbn:de:0030-drops-131755},
doi = {10.4230/LIPIcs.ECOOP.2020.18},
annote = {Keywords: Reference Mutability, Read-only References, DOT Calculus}
}
Keywords: |
|
Reference Mutability, Read-only References, DOT Calculus |
Collection: |
|
34th European Conference on Object-Oriented Programming (ECOOP 2020) |
Issue Date: |
|
2020 |
Date of publication: |
|
06.11.2020 |