Also you cannot just criticize without also proposing a solution :)
Also you cannot just criticize without also proposing a solution :)
But people don't read and write them often because of the language design.
Most Hindley Milner typed languages like ML and Haskell by default are generic by default and it's not harder or more complex than non-generic code.
Thinking of a function 'swap'. The signature should just be swap : (a, b) -> (b, a) instead of swap: <T, U>(x: (T, U)) => (U, T). The language design in most of languages which discourage people using generics.
In fact, non-generic code usually introduce couplings to the argument type, making things harder to change, and violates the least power principle.
Why not? There can be valid criticism without there necessarily being a better solution. That's actually the whole story of generics in Go. Countless proposals, ideas, and criticism. So far, there is no solution.