From: "normalperson (Eric Wong)" Date: 2013-10-08T18:54:12+09:00 Subject: [ruby-core:57727] [ruby-trunk - Feature #8998][Open] string keys for hash literals should use fstrings Issue #8998 has been reported by normalperson (Eric Wong). ---------------------------------------- Feature #8998: string keys for hash literals should use fstrings https://bugs.ruby-lang.org/issues/8998 Author: normalperson (Eric Wong) Status: Open Priority: Low Assignee: Category: core Target version: current: 2.1.0 While we're introducing optimizations from frozen strings, string keys inside hashes should be frozen at the compiler level to prevent duplication. a = { "ABC" => :t } b = { "ABC" => :t } # the following ought to print true p(a.keys[0].object_id == b.keys[0].object_id) This should introduce no incompatibilities and be transparent to users of older rubies. -- http://bugs.ruby-lang.org/