On 11/22/05, David A. Black <dblack / wobblini.net> wrote: > On Wed, 23 Nov 2005, Jeff Wood wrote: > > > I would do > > > > a = Hash.new { || [] } > > I believe that's the first empty || I've ever seen. It's awfully > confusing (my first reaction was: *what* or an empty array? :-) I'd > strongly encourage you to eschew that construct. It's deservedly > unheard of :-) Perhaps I'm missing something. Is there something wrong with the following? a = Hash.new { [] } irb tells me that it gets a new array each time. -- Rob (votes with David on this one - bleah)