From: Robert Klemme Date: 2008-04-19T20:45:17+09:00 Subject: Re: why doesn't ruby have generics? On 19.04.2008 12:06, Florian Gilcher wrote: > On Apr 19, 2008, at 11:58 AM, thufir wrote: > >> Is it because Ruby is dynamic, or something else? > Why would you bind to a type in a language that doesn't really > care about types? Otherwise, it is easy to implement such > functionality - just build a new kind of array that has to be > constructed with a class. Check for this class on insertion. > I don't see the use, though. That would be a type restricted Array but not a generic Array. You cannot have generics in a language whose variables are typeless as Arlen pointed out. Cheers robert