From: Dave Fayram Date: 2005-07-29T03:16:21+09:00 Subject: Re: method_missing crazyness On 7/28/05, Jeffrey Moss wrote: > Multimethods with optional typed argument lists would be totally awesome. It > wouldn't break backward compatibility either. Wasn't that the most popular > requested feature for ruby 2? Aren't these against the spirit of duck typing, though? I thought that Ruby was moving away from needing type-checking dispatch rather than towards needing it. The only time I've ever needed it is when I was doing some heavy math code. When your set of types is small and well known, it is much more elegant than loading up on the to_somethings or making a kind_of? if statement clause. > > As for the method_missing trick, I think it is too much of a special case, > because what if you want to use a custom prefix instead? > I would venture to say special prefixes or suffixes are actually the common case. -- -- Dave Fayram (II) dfayram@gmail.com