DEV Community

loading...

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

Collapse
in_harmonia profile image
Bustanil Arifin

I think this is called duck typing.

Collapse
dean profile image
Dean Bassett Author

It's similar, but not quite! Usually when people refer to duck typing, it's runtime (ie checking if something is a type by checking if it has a certain method at runtime). Go's interfaces are determined at compile-time rather than runtime.

Collapse
roddi profile image
Ruotger Deecke

True but the problem is the implicit part. Implicit is bad because.