12 ms·
That article is a concession speech on why generics are useful. Every single "trick" in the article is titled with the name of the equivalent method in more pow
by bbatha 10y ago
That article is a concession speech on why generics are useful. Every single "trick" in the article is titled with the name of the equivalent method in more powerful languages. I don't think its possible to look at that list of tricks or the amount of boiler plate to get simple methods like `sort` or `keys` and assert the language is "simple" and better off for it.
- masklinn 10y agoNot even that, Go does have generics for its special magical builtin types (map, slice, channels, … are generic) or functions (close, delete or the aforementioned append are generic)