From: Michael Edgar Date: 2011-05-30T16:37:56+09:00 Subject: [ruby-core:36576] Re: [Ruby 1.9 - Feature #4801][Open] Shorthand Hash Syntax for Strings This limitation has come up for me recently, where I actually ended up with a hash that looked like this: { foo: 1024, bar: 2048, :'quoted-sym' => 4096 } It'd have been quite nice to write it as { foo: 1024, bar: 2048, 'quoted-sym': 4096 } My 2 cents. Michael Edgar adgar@carboni.ca http://carboni.ca/ On May 30, 2011, at 3:33 AM, Anurag Priyam wrote: > Right, that makes sense. Also we would then be able to say, > {'foo-bar': 'something'} to mean {:'foo-bar' => 'something}, which I > guess is not possible with the current shorthand syntax.