From: Brian Candler Date: 2010-11-30T21:42:04+09:00 Subject: Re: RFC Future Ruby hash literal syntax Tony Arcieri wrote in post #965007: >> What's your [] equivalent of `Array.new(3) { Thing.new }`? >> > > Using an inline block like that mandates parens around the argument(s) > anyway so it's moot in this context. Parens not needed with do/end: >> class Thing; end => nil >> a = Array.new 3 do Thing.new end => [#, #, #] -- Posted via http://www.ruby-forum.com/.