From: Patrick Podenski Date: 2011-11-25T01:30:11+09:00 Subject: Re: Genric List in Ruby Also read about duck typing: http://en.m.wikipedia.org/wiki/Duck_typing From my iPhone --- Pat On Nov 24, 2011, at 2:03 AM, Dido Sevilla wrote: > Ruby is dynamically typed. Even the basic Array type can contain values > that are of any type whatsoever, so it is already a generic list which is > even more generic and flexible than the generic lists you can create in > most languages like C# and Java. It is perfectly legal to make an array > like: > > [ "a", 1, :b, SomeObject.new] > > where each element has a completely different type. I think it will take a > while for dynamic typing to sink in for someone like you who is used to > static types, but do take the time to understand it because it is what > makes Ruby what it is.