[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: ducktyping
- From: "Javier Guerra" <javier@...>
- Date: Wed, 24 Sep 2008 17:26:29 -0500
On Wed, Sep 24, 2008 at 5:07 PM, Greg Fitzgerald <garious@gmail.com> wrote:
> Wikipedia's criticism of duck typing:
> if it walks like a duck and quacks like a duck, it could be a dragon doing a
> duck impersonation
the whole point of polymorphism is to allow this......
> Douglas Adams:
> If it looks like a duck, and quacks like a duck, we have at least to
> consider the possibility that we have a small aquatic bird of the family
> anatidae on our hands.
..... as long as this is all you need
--
Javier