From: Ross Bamford Date: 2006-10-21T08:24:57+09:00 Subject: Re: Array#to_s in Ruby 1.9 Head On Fri, 2006-10-20 at 06:34 +0900, gwtmp01@mac.com wrote: > Mauricio Fernandez writes in http://eigenclass.org/hiki.rb?Changes+in > +Ruby+1.9+update+5 > that Ruby 1.9 Head has changed Array#to_s to be an alias for > Array#to_inspect. > > What is the motivation for that change? > print a > becomes > a.each { |x| print x } > > It seems like an unnecessary change that takes away a very nice > default behavior. FWIW I find I need 'puts ary.inspect' much more often than 'puts ary', so I think this is a good change. -- Ross Bamford - rosco@roscopeco.REMOVE.co.uk