跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:1704.03095 (cs)
[提交于 2017年4月11日]

标题:Quantifying and Explaining Immutability in Scala

作者:Philipp Haller, Ludvig Axelsson
查看论文《Quantifying and Explaining Immutability in Scala》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Functional programming typically emphasizes programming with first-class functions and immutable data. Immutable data types enable fault tolerance in distributed systems, and ensure process isolation in message-passing concurrency, among other applications. However, beyond the distinction between reassignable and non-reassignable fields, Scala's type system does not have a built-in notion of immutability for type definitions. As a result, immutability is "by-convention" in Scala, and statistics about the use of immutability in real-world Scala code are non-existent. This paper reports on the results of an empirical study on the use of immutability in several medium-to-large Scala open-source code bases, including Scala's standard library and the Akka actor framework. The study investigates both shallow and deep immutability, two widely-used forms of immutability in Scala. Perhaps most interestingly, for type definitions determined to be mutable, explanations are provided for why neither the shallow nor the deep immutability property holds; in turn, these explanations are aggregated into statistics in order to determine the most common reasons for why type definitions are mutable rather than immutable.
评论: In Proceedings PLACES 2017, arXiv:1704.02418
主题: 程序设计语言 (cs.PL)
引用方式: arXiv:1704.03095 [cs.PL]
  (或者 arXiv:1704.03095v1 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.1704.03095
期刊参考: EPTCS 246, 2017, pp. 21-27
相关 DOI: https://doi.org/10.4204/EPTCS.246.5

提交历史

来自:EPTCS
[v1] 2017年4月11日 星期二 00:43:25 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.PL
< 上一篇   |   下一篇 >
最新 | 近期 | 2017-04
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站