Extending Scala with records: design, implementation, and evaluation
Extending Scala with records: design, implementation, and evaluation
复制标题
DOI:
10.1145/3241653.3241661
复制
发表时间:
2018-09
期刊:
影响因子:
--
通讯作者:
Olof Karlsson;Philipp Haller
中科院分区:
文献类型:
--
作者:
Olof Karlsson;Philipp Haller
This paper presents a design for extensible records in Scala satisfying design goals such as structural subtyping, typesafe polymorphic operations, and separate compilation without runtime bytecode generation. Using new features of Scala 3, the design requires only minimal, local changes to the Scala 3 reference compiler Dotty as well as a small library component. Runtime performance is evaluated experimentally using a novel benchmarking suite generator, showing that the design is competitive with Scala 2's cached reflection for structural field access, and excels at immutable extension and update operations.