Bombay duck is said to have associated the pungent smell with that of the newspapers and mail which would come into the cantonments from Bombay. The term was later popularized among the British public by its appearance in Indian restaurants in the UK. In his 1829 book of poems and "Indian reminiscences", Sir Toby Rendrag (pseudonym) notes the "use of a fish nick-named 'Bombay Duck'" and the phrase is used in texts as early as 1815. The Bombay duck lives in the tropical areas of the Indo-Pacific. The fish is also known as "strange fish" because of its discontinuous distribution along the
Duck typing in a way that it does not support. class Duck: class Airplane: class Whale: def lift_off(entity): duck = Duck() airplane = Airplane() whale = Whale() lift_off(duck) # prints `Duck flying` lift_off(airplane) # prints `Airplane flying` lift_off(whale) # Throws the error `'Whale' object has no attribute 'fly'` Certain usually statically typed languages such as Boo and the version 4 release of C# have extra type annotations Templates in C++ allow the language to use compile-time duck typing. Duck typing is similar to, but distinct from structural typing. Structural typing is a static typing system that determines type compatibility and equivalence by