Replies: 1 comment 1 reply
-
|
This'd be a nicer notation, but it'd change what an interface means. Lis interfaces are faithful to the Go model, where an interface is only a method set and types satisfy it implicitly. With I do like the benefit though, as Go's generic workaround e.g. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Usage of the
Selftype in an interface method, for example:currently results in an error and a suggestion to use a type parameter instead. But having a real
Selftype seems like a much more natural fit in cases likeClone, andEquatable, etc.Beta Was this translation helpful? Give feedback.
All reactions