Hacker News new | ask | show | jobs
by whateveracct 2514 days ago
If you're writing loops that build up some accumulator, you could use generics. Even if you don't see that.
1 comments

You 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).

By that logic, there's nothing you _need_ generics for.