On 11/14/06, Andrew Koenig <[EMAIL PROTECTED]> wrote:
> > Duck typing is a seriously bad idea
>
> Why?

And more importantly, are we all talking about the same thing when we
say "duck typing"?  Duck typing as I know it means accepting an
argument that exhibits certain behaviors rather than being a certain
type.  It's widely considered to be one of Python's main features
because it's flexible for unforeseen circumstances. Sometimes a better
implementation is found that can't be expressed as a subclass.
Sometimes an object can't be one class because it has to be another,
yet it can still "behave like" the other object.

-- 
Mike Orr <[EMAIL PROTECTED]>
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to