...
首页> 外文期刊>The Journal of object technology >The Reaction of Open-Source Projects to New Language Features: An Empirical Study of C# Generics
【24h】

The Reaction of Open-Source Projects to New Language Features: An Empirical Study of C# Generics

机译:开源项目对新语言功能的反应:C#泛型的实证研究

获取原文
           

摘要

Language designers introduce new language features in programming languages because those features are claimed to be beneficial. In this paper, we investigate claims made about the generics language feature, and compare how those claims stack up in C# versus Java. Through an empirical study of the generics feature in open-source projects, we found that (1) although they have the same claimed benefits in different programming languages, generics are more readily used in C# than in Java and that the benefits of generics are manifested more clearly in C# programs, and (2) programmers rarely use the var keyword with generics, except when using very long generic expressions, suggesting that programmers prefer readability over succinct syntax, as long as the syntax does not become overly verbose. Many of these observed differences may be attributed to subtle differences in implementation and are consistent with the notion that crafting the user experience of a programming language feature can impact how the feature is adopted and embraced by developers.
机译:语言设计人员在编程语言中引入了新的语言功能,因为这些功能被认为是有益的。在本文中,我们将研究有关泛型语言功能的声明,并比较这些声明在C#和Java中的堆积方式。通过对开放源代码项目中泛型功能的实证研究,我们发现(1)尽管它们在不同的编程语言中具有相同的声明优势,但泛型在C#中比在Java中更容易使用,并且泛型的优势得到了体现。更清楚地在C#程序中,以及(2)程序员很少将var关键字与泛型一起使用,除非使用非常长的泛型表达式时,这表明程序员希望可读性胜于简洁语法,只要语法不会变得过于冗长。这些观察到的差异中的许多差异可能归因于实现上的细微差异,并且与以下观点一致:精心设计一种编程语言功能的用户体验会影响开发人员采用和接受该功能的方式。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号