Duck Typing

In computer programming, duck typing is a style of dynamic typing in which an object's current set of methods and properties determines the valid semantics, rather than its inheritance from a particular class or implementation of a specific interface.

-- Duck typing, Wikipedia

Examples

  • pervasive (Python, Ruby)

  • type 'any' (ColdFusion)

  • type 'id' (Objective-C)

Resources


Children:

Topic revision: r1 - 11 May 2009, RichMorin

Available Webs


This site is powered by Foswiki Copyright © by the contributing authors. All material on this wiki is the property of the contributing authors.
Foswiki version v2.1.6, Release Foswiki-2.1.6, Plugin API version 2.4
Ideas, requests, problems regarding CFCL Wiki? Send us email