From: "David A. Black" Date: 2007-10-23T00:02:57+09:00 Subject: Re: Conflicts between using respond_to? and extending Ruby Hi -- On Mon, 22 Oct 2007, David A. Black wrote: > What I've always called the soft/hard duck typing distinction isn't > quite the same as what you're calling the chicken/duck distinction, > though, in the sense that I rule is_a? and kind_of? completely out of > bounds as duck typing of any kind. I didn't put that very clearly, since you do too. What I mean is, it's like this: Rick: Chicken-typing is_a?/kind_of? respond_to? Duck-typing obj.message David: Class-checking: is_a?/kind_of Soft duck: respond_to? Hard duck: obj.message or something. David -- Upcoming training by David A. Black/Ruby Power and Light, LLC: * Advancing with Rails, Edison, NJ, November 6-9 * Advancing with Rails, Berlin, Germany, November 19-22 * Intro to Rails, London, UK, December 3-6 (by Skills Matter) See http://www.rubypal.com for details!