首页    期刊浏览 2025年02月28日 星期五
登录注册

文章基本信息

  • 标题:Reference Mutability for DOT
  • 本地全文:下载
  • 作者:Vlastimil Dort ; Ondřej Lhoták
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2020
  • 卷号:166
  • 页码:1-28
  • DOI:10.4230/LIPIcs.ECOOP.2020.18
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要: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.
  • 关键词:Reference Mutability; Read-only References; DOT Calculus
国家哲学社会科学文献中心版权所有