Hacker News new | ask | show | jobs
by taeric 2858 days ago
Oddly, I have pushed back on many devs introducing generic interfaces. For library writers, they can be nice. For everyone else, they typically just get you in trouble.

So, I don't want to remove them from the language. However, I do question a large percentage is their use in everyday programming.

1 comments

Generics are useful all the time. That is why Go has generic Maps and slices. The question is why I am not allowed to use other generic collections.
No, generic collections are pretty much useful all of the time. Other generic things are useful when done well.