From: Anurag Priyam Date: 2011-05-30T16:33:22+09:00 Subject: [ruby-core:36574] Re: [Ruby 1.9 - Feature #4801][Open] Shorthand Hash Syntax for Strings > |> Iff �{'key': 'value'} means {:key => 'value'} I have no objection. > | > |Won't that be misleading? I think the OP wants {'key': 'value'} to > |mean {'key' => 'value}. > > I don't disagree here. �But considering the fact that {key: "value"} > is a shorthand for {:key => "value"}, {"key": "value"} should be a > shorthand for {:"key" => "value"}. �Besides that, since it reminds me > JSON so much, making a: and "a": different could cause more confusion > than the above misleading. 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. -- Anurag Priyam http://about.me/yeban/