From: Josh Cheek Date: 2010-11-30T23:09:36+09:00 Subject: Re: RFC Future Ruby hash literal syntax --0016361e7b0cea27f6049645bc30 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Nov 29, 2010 at 9:40 PM, Yossef Mendelssohn wrote: > On Nov 29, 5:31 pm, Ryan Davis wrote: > > I think all variants or Array.new are essentially useless and stick to [] > for everything. > > What's your [] equivalent of `Array.new(3) { Thing.new }`? > > -- > -yossef > > Don't even need to go that far, even the String version has this issue. a = ['A'] * 5 a.first << 'B' a # => ["AB", "AB", "AB", "AB", "AB"] --0016361e7b0cea27f6049645bc30--