javagenerics

Why do some claim that Java's implementation of generics is bad?


I've occasionally heard that with generics, Java didn't get it right. (nearest reference, here)

Pardon my inexperience, but what would have made them better?


Solution

  • Bad:

    Good: