David Alan Black <dblack / candle.superlink.net> writes:

> I'm cool with Ruby's emphasis on object interface rather than type.
> The only thing is...  I just can't get myself to be happy about this
> idiom:
> 
>    if obj.respond_to? "method" then obj.method end

This is an interesting topic. Just to make sure we're talking about
the same thing, can I start with a question.

When do you need to check the protocol of an object like this?


Dave