|
Interesting article. I think that using <> for the type specifiers would possibly be better! For example one could quickly end up with something like: func (obj *SomeType(Q, Z)) Foo(type K, V comparable)(key K, val V) (*OtherType(Q, V), error) {
...
}
... Lots of Infuriating & Silly Parentheses? |
Also note that generic methods are not allowed in the current design, only generic functions.
The new draft design ( https://go.googlesource.com/proposal/+/refs/heads/master/des... ) discusses both of these points. I recommend everyone who is interested in this topic read the design spec, ideally before commenting.