3 ms·
It seems that most people who don't want generics are not able to provide good arguments in support of them. Just hand wavy ones like "I never needed them" or "
by gher-shyu3i 6y ago
It seems that most people who don't want generics are not able to provide good arguments in support of them. Just hand wavy ones like "I never needed them" or "complexity", even though complexity is inherent in reality.
I've seen tons of golang code that would have been much simpler, and less error prone if the language had generics.
- loopz 6y agoSome people just don't want genetics. Maybe never seen the use. Some just want to avoid C++ templates and all those warts. I think the consensus is that Go community want it done right, or not at all.
- gher-shyu3i 6y agoDone right how? Practically every way that generics can be done is already done (C++, Java, C#, and Zig cover practically all bases). It seems very hand wavy for some people to say they want it done right, as if there's a magical way that hasn't been invented yet that will find its way into golang, which is known for being a language from the 70s as far as features go.
- loopz 6y agoIn a way promoting non-convoluted code. It's a property of the language which is like a side effect. Kind of reminds me of Ruby except Ruby was too dynamic to achieve it. C# is very readable too.