#structural-typing

[ follow ]
Scala
fromHackernoon
6 years ago

Go Interfaces, Explained for TypeScript Developers | HackerNoon

Interfaces ensure consistent behavior in programming languages, focusing on either structure or behavior.
TypeScript employs structural typing while Go uses duck typing for interface implementation.
[ Load more ]