Duck typing: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

26 November 2025

  • curprev 17:1317:13, 26 November 2025Helpful talk contribsm 2,141 bytes −59 No edit summary
  • curprev 17:1217:12, 26 November 2025Helpful talk contribsm 2,200 bytes +203 No edit summary
  • curprev 17:0717:07, 26 November 2025Helpful talk contribs 1,997 bytes +1,997 Created page with "Duck typing is named for ''"If it walks like a duck and quacks like a duck, it must be a duck."'' In programming, as long as a value/object behaves like we expect, it doesn't really matter what it actually is -- "if we can make it quack like a duck, it's duck-like enough for our purposes." This is mostly a concept around dynamic typing. It usually saves a lot of typing, the kind of typing primarily or ''only'' necessary to make the compiler happy. This sounds like..."