3 ms·
No. My recollection is a lot of people urging them to get generics right and into 1.0 and the Go guys saying, “don’t worry, we can add generics later”.
by mcculley 2y ago
No. My recollection is a lot of people urging them to get generics right and into 1.0 and the Go guys saying, “don’t worry, we can add generics later”.
- yubblegum 2y agoNo, your recollection is not factual. Ross Cox laid out the case(s) and the fact that no option was manifestly preferable. Not sure what happened but after the initial resistance by the Gophers to ~1/2 of community clamoring for generics (I consider it a mistake) it seems some important Go based projects finally forced them to adopt one of the uglies (opinion, folks /g) https://research.swtch.com/generic https://research.swtch.com/generic
- pjmlp 2y agoThe same Ross Cox acknowledged that he was wrong. ". They are likely the two most difficult parts of any design for parametric polymorphism. In retrospect, we were biased too much by experience with C++ without concepts and Java generics. We would have been well-served to spend more time with CLU and C++ concepts earlier." https://go.googlesource.com/proposal/+/master/design/go2draft-generics-overview.md https://go.googlesource.com/proposal/+/master/design/go2draf...
- School-Cotton 2y ago“we were biased too much by experience with C++” (or C) could describe most of the dubious design decisions for Go. It seems there are tons of things the designers banned because they are bad in C, and didn’t supply any replacement because the C++ version is overly complicated or hard to use, and they weren’t aware of anything better. Metaprogramming is a perfect example. C macros are bad, C++ metaprogramming facilities are baroque, so let’s not have any metaprogramming features whatsoever and tell people to rely on code generations or reflection instead.
- yubblegum 2y agoThe governance of the language was borderline ideological, imo. (There is a very curious but prevalent phenomena where highly intelligent people let a governing ideology do the thinking for them and refuse to countenance ideologically discordant possibilities. (Ancient too, as we see from the ideological reaction of Pythagorean's to existence of √2..))
- dragonwriter 2y ago> There is a very curious but prevalent phenomena where highly intelligent people let a governing ideology do the thinking for them and refuse to countenance ideologically discordant possibilities. Highly intelligent people experience having correct intuition -- a product of reasoning occurring at below a conscious level -- a lot, to the point where they may learn to intrinsically trust their intuition to be correct and be highly confident it will prove correct. However, while intuition can often be a manifestation of that kind of unconscious reasoning, it can also be a product of aesthetic/ideological (really, the same thing) preference, among other biases.