DEV Community


Discussion on: The Problem with Interfaces, and how Go Fixed it

dfacastro profile image
Diogo Castro

Also, interfaces in Go describe what a structure does rather than what it is, and they should be used as such.

Yes, that was precisely my point. They let you abstract over the signature of a function, but not over its laws. Therefore, Go's expressiveness is limited.