by cgag · 13y ago · 0 comments
Translated to Go: "When I see a type with methods that satisfy this interface, then it implements this interface."
Basically, the interface just defines at compile time what Python defines at runtime... except it's a hell of a lot easier to see what methods are required for a Go interface, than it is to see what methods are required for a python function (you basically have to read the entire function and any function that function passes the argument to).
Not that I don't like python, I do.
I don't really think that is true in Go.