#duck-typing

[ follow ]
fromHackernoon
6 years ago

Go Interfaces, Explained for TypeScript Developers | HackerNoon

In TypeScript, interfaces are structurally typed, allowing you to define expected object shapes, whereas Go's interfaces leverage duck typing for behavior without explicit implementation.
Scala
[ Load more ]