Dynamic Languages

There are 1 entries for the tag Dynamic Languages

How Duck Typing Benefits C# Developers

David Meyer recently published a .NET class library that enables duck typing (also sometimes incorrectly described as Latent Typing as Ian Griffiths explains in his campaign to disabuse that notion) for .NET languages. The term duck typing is popularly explained by the phrase If it walks like a duck and quacks like a duck, it must be a duck. For most dynamic languages, this phrase is slightly inaccurate in describing duck typing. To understand why, let’s take a quick look at what duck typing is about. Duck Typing Explained Duck typing allows an object to be passed in to a method that expects a certain...