From: Ilmari Heikkinen Date: 2005-12-30T20:45:04+09:00 Subject: Re: [ANN] (Real) Primitive Ruby Generics support On 12/29/05, Robert Klemme wrote:> Isaac Devine wrote:> > Another wish is for pattern matching:> > generic_method :foo, :a, :b :a do ...> > where wherever :a occurs it must be the same type so:> > foo 4 "a" 4 passes> > but> > foo "a" 4 4 fails.>> Sounds like you wanted to reimplement some features very common with> functional languages in Ruby. Why do you do that? Maybe this is because these features are found to be useful.