Generics are awful. They solve no problem in the domain space, only the developer space.
Which then creates the problem of developers who insist on writing infinitely extensible generics with indecipherable bounds.
Just repeat code. You'll be fine.
If you find yourself repeating a LOT of code because Go does not support generics, maybe stop and think about your design. Putting generics in as an escape hatch will do you more than good, guaranteed
Which then creates the problem of developers who insist on writing infinitely extensible generics with indecipherable bounds.
Just repeat code. You'll be fine.
If you find yourself repeating a LOT of code because Go does not support generics, maybe stop and think about your design. Putting generics in as an escape hatch will do you more than good, guaranteed