From: matz@... Date: 2014-07-26T08:11:29+00:00 Subject: [ruby-core:64042] [ruby-trunk - Feature #4276] [Feedback] Allow use of quotes in symbol syntactic sugar for hashes Issue #4276 has been updated by Yukihiro Matsumoto. Status changed from Assigned to Feedback I am not against the idea, but I want to make sure that key will be symbol, since some may expect {"foo bar": 12} to be a hash with string key, especially who is familiar with JSON. Matz. ---------------------------------------- Feature #4276: Allow use of quotes in symbol syntactic sugar for hashes https://bugs.ruby-lang.org/issues/4276#change-48054 * Author: Tyler Benster * Status: Feedback * Priority: Low * Assignee: Yukihiro Matsumoto * Category: core * Target version: next minor ---------------------------------------- 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"} -- https://bugs.ruby-lang.org/