Articles on structural typing

Pink blue stripes
Jared Carroll

Jared Carroll

Structural Typing: Compile Time Duck Typing

Google’s Go programming language, a statically typed compiled language, has been called a modern, better C. It builds on C by adding features such as garbage collection, concurrency constructs, and user-defined class-like types. One missing feature is classical object-oriented inheritance. Instead, Go uses interfaces and structural typing. Structural typing is like compile time duck typing.