News for hackers. Stuff that matters.
Re:Generics facilitators in Go by mseepgood on Wednesday December 22, 2021 @05:27PM (#29656289)
In Go any type can implement interfaces. A type doesn't declare which interfaces it implements.
Re:Generics facilitators in Go by masklinn on Thursday December 23, 2021 @04:56AM (#29660312)
That doesn't seem like a relevant objection?

If structs support generic methods but interfaces don't then nothing happens, everything just works as you'd expect (whithin those limitations). A method which isn't part of the interface is not under consideration, so the generic methods have no bearing on the interfaces the object could or would implement.

The reverse would be an issue, but this is not.