From: Florian Gilcher Date: 2008-04-19T21:04:39+09:00 Subject: Re: why doesn't ruby have generics? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Apr 19, 2008, at 1:45 PM, Robert Klemme wrote: > 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 > Yeah, thats why I was talking about "such functionality". It would serve the same purpose. I was not clear enough about that. Greetings, Florian Gilcher -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkgJ38sACgkQJA/zY0IIRZYWqACfaOXjJxZ1XqBjiTRLdQgQKjYp ObQAoMiQmOh2xnbJPvi9bRPcxpaM3MJo =CQU6 -----END PGP SIGNATURE-----