News for hackers. Stuff that matters.
Re:Generics enabled by default in Go tip by silisili on Saturday August 21, 2021 @01:09AM (#28254384)
Same here. But I think it's more laziness than 'too smart.'

I like to liken it to house construction. Imagine if a number of people demanded that natural gas and water be combined. Why do I have to make two separate pipes? They even look the same!

Re:Generics enabled by default in Go tip by jolux on Saturday August 21, 2021 @01:16AM (#28254421)
There are just things you can’t do without having generics in your language. User-defined collections, for one. Statically typed higher order functions, for another. To paraphrase (I believe) Bob Harper, you either have a statically typed language with generics, or you have a dynamically typed language. That’s the result of not having generics. Code that needs them becomes more dangerous and error-prone.