Published September 13, 2019 | Version v1
Journal article Open

Scala Implicits Are Everywhere: A Large-Scale Study of the Use of Scala Implicits in the Wild

  • 1. Czech Technical University
  • 2. Carnegie Mellon University
  • 3. Northeastern University, Czech Technical University

Description

The Scala programming language offers two distinctive language features implicit parameters and implicit
conversions, often referred together as implicits. Announced without fanfare in 2004, implicits have quickly
grown to become a widely and pervasively used feature of the language. They provide a way to reduce the
boilerplate code in Scala programs. They are also used to implement certain language features without having
to modify the compiler. We report on a large-scale study of the use of implicits in the wild. For this, we
analyzed 7,280 Scala projects hosted on GitHub, spanning over 8.1M call sites involving implicits and 370.7K
implicit declarations across 18.7M lines of Scala code.

Files

main.pdf

Files (2.9 MB)

Name Size Download all
md5:72da7eae9b9fc204bbe5f80534ce2913
2.9 MB Preview Download

Additional details

Related works

Is identical to
arXiv:1908.07883 (arXiv)

Funding

ELE – Evolving Language Ecosystems 695412
European Commission