3 ms·
> Nevertheless I think people implementing them in their own projects is basically code smell and they are a symptom of poorly thought-out code rather than exce
by icholy 3y ago
> Nevertheless I think people implementing them in their own projects is basically code smell and they are a symptom of poorly thought-out code rather than excellent code.
Who needs data structures right?
- Veraticus 3y agoUh, generics are not data structures and generics are neither the only way nor the best way to interact with data structures.
- lillywastaken 3y agoDo you think it is somehow more elegant to have a specialised version of a data-structure for every single type that may need to be placed into it? Or just to ignore the type whatsoever and erase it via interface{}? Even Golang's designers obviously realise that generics are a better way to interact with data structures because the standard types map and array were always "generic", just special cased as such.
- lenkite 3y agoYeah, you must hate use the golang map type then. It is a generic data-structure.