3 ms·
If you're writing loops that build up some accumulator, you could use generics. Even if you don't see that.
by whateveracct 7y ago
If you're writing loops that build up some accumulator, you could use generics. Even if you don't see that.
- iainmerrick 7y agoYou could use generics for that kind of code, but that doesn’t necessarily mean you need them. If you’re thinking of functional stream operators, many people think plain imperative iteration is easier to write (and easier to read).
- whateveracct 7y agoBy that logic, there's nothing you _need_ generics for.