Relative Content

Tag Archive for duck-typing

Is there a difference between duck typing and structural typing? [duplicate]

This question already has answers here: Type systems: nominal vs. structural, explicit vs. implicit (4 answers) Closed 9 years ago. Duck typing is deciding on the type of an object, based on the operations it supports and the attributes it owns. Structural typing is… the same thing? What exactly is the difference? type-systems duck-typing 1 […]