Language Generics Debate

The cluster centers on discussions about the necessity, implementation challenges, pros and cons of generics in programming languages, including comparisons across Go, C, Java, C#, and regrets or benefits of their presence or absence.

📉 Falling 0.4x Programming Languages
4,498
Comments
19
Years Active
5
Top Authors
#1786
Topic ID

Activity Over Time

2008
6
2009
23
2010
61
2011
58
2012
81
2013
137
2014
337
2015
275
2016
331
2017
410
2018
388
2019
343
2020
340
2021
504
2022
449
2023
268
2024
204
2025
279
2026
4

Keywords

toplas.pdf MyClass NET www.cis SFINAE OOP youtube.com sorbet.run IfNotNull upenn.edu generics generic types java languages type function entanglement foo language

Sample Comments

gnuvince Mar 17, 2011 View on HN

Has the absence of generic types been a problem for you?

skybrian Jan 10, 2015 View on HN

Implementing generic types efficiently is difficult.

Jweb_Guru May 29, 2015 View on HN

Can you provide some examples of languages where people regret having implemented generics at all (as opposed to wishing they had been implemented in a different way)?

horsawlarway Nov 13, 2020 View on HN

Can you give an example of the value this would provide that isn't provided by generics?

GenericsMotors Jun 15, 2018 View on HN

Or use a language with reified generics :)

Bjartr Mar 1, 2023 View on HN

So kind of like Go and generics in that regard

josteink Jul 23, 2017 View on HN

Let's just say it can't have a type-system limited to not understanding generics.

endtime Jul 26, 2010 View on HN

Why does Generic Programming require static types?

BenFrantzDale Dec 14, 2021 View on HN

Why in almost 2022 do people put up with a language lacking generics?

tel Feb 1, 2015 View on HN

Generics would hamper its speedy compilation time.