by zimbatm · 10y ago · 0 comments
Generics introduce more complexity for the reader of the code because it's another abstraction to understand.
It's debatable but when your brain is thinking about generics or context-switching because it has to wait on the compiler to finish, it's less time making progress on the actual thing that needs to be done.
Sure. Abstractions are perfect, and you never have to think about their costs. Generics always take away complexity. Gotcha.