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

被引:4
|
作者
Krikava, Filip [1 ]
Miller, Heather [2 ]
Vitek, Jan [1 ,3 ]
机构
[1] Czech Tech Univ, Prague, Czech Republic
[2] Carnegie Mellon Univ, Pittsburgh, PA 15213 USA
[3] Northeastern Univ, Boston, MA 02115 USA
来源
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL | 2019年 / 3卷 / OOPSLA期
基金
欧洲研究理事会; 美国国家科学基金会;
关键词
Implicit parameters; implicit conversions; corpora analysis; Scala;
D O I
10.1145/3360589
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页数:28
相关论文
共 50 条
  • [41] Wild Tibetan Macaques Use a Route-Based Mental Map to Navigate in Large-Scale Space
    Cheng, Shi
    Li, Bo-Wen
    Garber, Paul A.
    Xia, Dong-Po
    Li, Jin-Hua
    AMERICAN JOURNAL OF PRIMATOLOGY, 2025, 87 (01)
  • [42] Compost use in large-scale vegetable production
    McPhee, J
    BIOCYCLE, 2000, 41 (04) : 29 - 29
  • [43] The use and abuse of large-scale brain models
    Eliasmith, Chris
    Trujillo, Oliver
    CURRENT OPINION IN NEUROBIOLOGY, 2014, 25 : 1 - 6
  • [44] USE OF LARGE-SCALE BUDGETS FOR CONVECTIVE PARAMETERIZATION
    FRITSCH, JM
    CHAPPELL, CF
    HOXIT, LR
    MONTHLY WEATHER REVIEW, 1976, 104 (11) : 1408 - 1418
  • [45] EFFECTS OF LARGE-SCALE USE OF HERBICIDES AND DEFOLIANTS
    MESELSON, MS
    SCOVILLE, H
    BERL, WG
    SCIENCE, 1970, 170 (3960) : 879 - &
  • [46] THE USE OF A LARGE-SCALE COMPUTER FOR MANUFACTURING CONTROL
    CARLIN, FC
    MANAGEMENT SCIENCE, 1958, 4 (02) : 177 - 182
  • [47] LARGE-SCALE INDUSTRIAL USE OF SODIUM AS COOLANT
    PEPPLER, W
    CHEMIKER-ZEITUNG, 1979, 103 (06): : 195 - 207
  • [48] Use of large-scale chromatography in the preparation of armodafinil
    Hauck, Willy
    Adam, Philippe
    Bobier, Christelle
    Landmesser, Nelson
    CHIRALITY, 2008, 20 (08) : 896 - 899
  • [49] USE OF COMPUTERS IN LARGE-SCALE COMBUSTION EXPERIMENTS
    WILLIAMS, FW
    TATEM, PA
    AHMED, O
    INDRITZ, D
    ABSTRACTS OF PAPERS OF THE AMERICAN CHEMICAL SOCIETY, 1979, (APR): : 17 - 17
  • [50] Large-scale use of forest chips in Finland
    不详
    FORESTRY CHRONICLE, 2000, 76 (05): : 717 - 717