|
|
|
|
|
by jerf
1690 days ago
|
|
Stick close to the standard library and the extended libraries (https://pkg.go.dev/golang.org/x ), track a community list where a lot of discussion will be occurring very quickly after release. I don't want to recommend "don't use generics", but generally think about whether or not you can solve the problem without them without immediately reaching for them. There are patterns in Go that work just fine today, which is why despite the fact that clearly some people are just flabberghasted at the idea that Go is useful without generics, it demonstrably is. Interfaces are quite a lot of what you need out of "generics". Don't just give up and copy and paste; it is necessary way less than some people who were trying to write C++ in Go claim it is. |
|
As always in Go, follow the standard library. If they're hesitating to use generics, then that's solid advice.