spec: generic methods for Go
Proposal: Generic Methods for Go
A change of view.
Background
For clarity, in the following we use the term concrete method (or just method when the context is clear) to describe a non-interface method declared like a function but with a receiver; and we use the term interface method to describe the name and signature of a method of an interface.
Per the current spec, a concrete method is a function with a receiver. Syntactically this is not quite true: while functions can be generic, methods ca...
Read more at github.com