From: "bitsweat (Jeremy Kemper)" Date: 2012-12-01T02:31:47+09:00 Subject: [ruby-core:50404] [ruby-trunk - Feature #4276] Allow use of quotes in symbol syntactic sugar for hashes Issue #4276 has been updated by bitsweat (Jeremy Kemper). This would improve a lot of my code that's punctuated with `{ foo: bar, :'hoge' => piyo }`. Switching syntax is a mental and visual interruption. I hope Ruby 2 supports this quoted-symbol syntax from the first day it's released, so everyone can rely on it. Please consider this patch for preview2! ---------------------------------------- Feature #4276: Allow use of quotes in symbol syntactic sugar for hashes https://bugs.ruby-lang.org/issues/4276#change-34231 Author: tbenst (Tyler Benster) Status: Assigned Priority: Low Assignee: matz (Yukihiro Matsumoto) Category: core Target version: next minor =begin Current syntactic sugar allows this: hash = {Alabama: "AL"} This feature request is to also allow symbols delimited by quotes (and thus able to contain a whitespace) to use an equivalent syntactic sugar: hash2 = {"Rhode Island": "RI"} =end -- http://bugs.ruby-lang.org/