From: Michael Edgar Date: 2011-05-30T21:05:04+09:00 Subject: [ruby-core:36581] Re: [Ruby 1.9 - Feature #4801][Open] Shorthand Hash Syntax for Strings Since :"#{abc}" is allowed in Ruby, I imagine that any such substitute syntax would preserve that property. I disagree strongly that Hash, the base class, should special-case the behaviors of Strings and Symbols to be equal. It's a hash table, like those encountered in any other language, and shouldn't behave unlike typical hash tables. Namely h[a] and h[b] look up the same value iff a == b (or a.eql?(b), or whichever equality test you use). Strings and symbols are never equal. Michael Edgar adgar@carboni.ca http://carboni.ca/ On May 30, 2011, at 7:58 AM, Rodrigo Rosenfeld Rosas wrote: > abc = 'cba' > {"#{abc}": 'some text'} == {:'cba' => 'some text'}