|
|
|
|
|
by j16sdiz
2679 days ago
|
|
Go use a duck typing system, many of the generic use case can be solved using interface elegantly.. For the rest... Yes, it is very ugly. But the standard generic does not fit very well with go type system, so.... Luckily, go is very simple. Even ugly bit are not hard to understand. |
|
Why not? Generics in Arrays/Maps/Slices fit perfectly in the language, and don't feel weird at all in Go.