Maybe adding generics to Go IS about syntax after all

1 · Dave Cheney · Sept. 3, 2018, 5:58 a.m.
This is a short response to the recently announced Go 2 generics draft proposals Update: This proposal is incomplete. It cannot replace two common use cases. The first is ensuring that several formal parameters are of the same type: contract comparable(t T) { t > t}func max(type T comparable)(a, b T) T Here a, and […]...