[Python-3000] my take on "typeclasses"

Nick Coghlan ncoghlan at gmail.com
Wed May 10 14:15:30 CEST 2006


Baptiste Carvello wrote:
> "if it looks like a duck from half a mile away, then it *might* be a duck"
> 
> Sometimes, you just don't want to walk half a mile for nothing :)

That's beautiful. Now we just need somewhere to put a QOTW for the Py3k list ;)

> Sorry for this "philosophical" post. I hope it helps clarify the current 
> discussion about what is really duck typing.

It mixed in a bit of the difference between EAFP and LBYL, too. It was one of 
the better descriptions I've seen, though :)

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-3000 mailing list