4 ms·
The whole point of abstractions is that you don't have to worry about as much. Generics take away complexity, that's the whole point.
by d4rkph1b3r 10y ago
The whole point of abstractions is that you don't have to worry about as much. Generics take away complexity, that's the whole point.
- stcredzero 10y agoThe whole point of abstractions is that you don't have to worry about as much. Generics take away complexity, that's the whole point. Sure. Abstractions are perfect, and you never have to think about their costs. Generics always take away complexity. Gotcha.
- zimbatm 10y agoI suppose it depends on the level of understanding that you want from your code. Generics introduce another dimension which you have to think about when you want a good level of control on allocations for example. Different data types also have different optimizations available which could be missed when blindly relying on the generic algorithm (think sorting on a fixed set for example)