logoalt Hacker News

h1fratoday at 12:36 PM5 repliesview on HN

slowly implementing all the things they said we didn't need


Replies

CamouflagedKiwitoday at 1:41 PM

They didn't say they never wanted to do generics, but that they did want to take their time and do them right.

Debatable how much they have been "right", although this gets them somewhat closer. And I think they have not been "wrong" in the ways they wanted to avoid (they referenced some issues with Java generics as prior art, although I forget the details).

show 3 replies
TheChaplaintoday at 12:39 PM

It's not a bad thing to realize that one can be wrong and then strive for change.

show 4 replies
Cthulhu_today at 2:52 PM

Where did "they" say "we" didn't need generics? That sounds like a bad faith / misinterpretation / straw man; as someone else pointed out, they postponed generics until they figured out the use cases and whatnot.

Remember that the generics implementations in other languages (like Java) take up half the spec + implementation - that's not something that Go wanted.

show 1 reply
9rxtoday at 1:15 PM

Of course, if you go back and watch the original Go announcement it said that it would need generics once they figured out how to do it. And when the first version of generics landed it was said that generic methods would be added later, once they figured out how to do it. So that isn't applicable here. The need was always recognized.

fhntoday at 3:03 PM

complaining about things given to you for free

show 1 reply