From: Joseph Lenton Date: 2008-04-20T07:49:02+09:00 Subject: Re: why doesn't ruby have generics? thufir wrote: > Is it because Ruby is dynamic, or something else? > > > -Thufir As far as I've understood it, in Ruby it's not about what the type is but what the type can do. i.e. does it respond to a specific method. So maybe generics in Ruby would make sense if you could restrict objects based on what they can do. For example an array which can only hold obejct that respond to the to_str method. -- Posted via http://www.ruby-forum.com/.