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.