I'm working on modernizing Rosetta Code's infrastructure. Starting with communications. Please accept this time-limited open invite to RC's Slack.. --Michael Mol (talk) 20:59, 30 May 2020 (UTC)


From Rosetta Code
Typing/Compatibility/Duck is a programming language feature.

A typing scheme commonly used by dynamic languages.

If it walks like a duck and quacks like a duck, I would call it a duck.

For example, with structural typing a “get the x element of a structured type” operation will only apply to one type (or its subtypes), but with duck typing it will apply to any structured type that has such an element. It is common for duck-typed languages to use dynamic typing too.


This category has the following 14 subcategories, out of 14 total.