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.
Log in to continue
We're a place where coders share, stay up-to-date and grow their careers.
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.