From: Robert Klemme Date: 2006-06-22T21:24:52+09:00 Subject: Re: Ruby goodies? 2006/6/22, dblack@wobblini.net : excellent list all of which I completely agree What I also like is that it's OO is so clean and easy that I end up creating classes all the time - even for simple scripts. Often that involves just MyClass = Struct.new(:foo, :name; :bar) and I can immediately use MyClass instances as Hash keys etc. In Perl, for example, I'd probably end up using arrays all the time because creating classes is so tedious and error prone (at least it was the last time I tried). Also, Hash is very powerful - especially considering the form with the block for missing elements. It makes many scripts very easy. collect = Hash.new {|h, k| h[k] = []} ... # don't worry about non existing keys here: collect[my_key] << something And then there are all those nifty details, e.g. String, IO and Array implement << so you can pass any of these to a method that "appends" something and it will work. There's a lot of these convenient things in Ruby. Kind regards robert -- Have a look: http://www.flickr.com/photos/fussel-foto/