Comment by DanielHB

2 days ago

It exchanges it for code-generation pain. Which one is worse is on a case-by-case basis.

I imagine that people who prefer code-generation just like the idea of it having a higher skill/investment floor to add it to a project so most projects instinctively avoid it.

While people who prefer generics jump at it even when it is not necessary or doesn't bring a lot of benefits.

But those are human problems, not so much shortcomings of those two techniques themselves.