From: Dave Thomas Date: 2004-06-06T02:39:48+09:00 Subject: Re: How to ducktype a Hash? On Jun 5, 2004, at 12:30, Sean O'Dell wrote: > I just don't like this duck-typing business. I can handle dynamic > typing, but > I wish there were something more solid about the typing, at least a > way to > know when an object implements a certain interface or not, so I can > tell an > array-like object from a hash-like object. Perhaps you could design the interface to your classes so that the distinction is either explicit or irrelevant. Cheers Dave