From: gabriele renzi Date: 2004-05-18T07:18:47+09:00 Subject: Re: How to duck type? - the psychology of static typing in Ruby il Mon, 17 May 2004 22:52:22 +0900, Tim Bates ha scritto:: > >2) Okay, you say, if that's not duck typing, let's do duck typing by >accepting a whole bunch of different input formats and trying to turn >them into something we know how to deal with, like this: this was an interesting reading, thanks for it. But It happens to me that I'm locked in a mental loop. From time to time I think: - I'll use duck typing. - I don't need to do that strange things, I'll write a date_from_string method - eh, multi methopd dispatch would be nice.. - well, duck typing is actually cheking an interface. Why don't we just use static checked interfaces? what's wrong with a Date-able mixin ? - oh, static sux, I'll use duck typing..