#duck-typing

[ follow ]
Python
fromRealpython
3 weeks ago

Exploring Protocols in Python - Real Python

Protocols in Python enable structural subtyping and static duck typing, enhancing type hinting and type checking capabilities.
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 ]