The reaction of open-source projects to new language features: An empirical study of C# generics

8Citations
Citations of this article
15Readers
Mendeley users who have this article in their library.

Abstract

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.

Cite

CITATION STYLE

APA

Kim, D., Murphy-Hill, E., Parnin, C., Bird, C., & Garcia, R. (2013). The reaction of open-source projects to new language features: An empirical study of C# generics. Journal of Object Technology, 12(4), 1–30. https://doi.org/10.5381/jot.2013.12.4.a1

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free