[ruby-core:64006] [ruby-trunk - Feature #4276] Allow use of quotes in symbol syntactic sugar for hashes

From: nobu@...
Date: 2014-07-25 08:36:18 UTC
List: ruby-core #64006
Issue #4276 has been updated by Nobuyoshi Nakada.


Updated with the test in [Feature #4935]: https://github.com/ruby/ruby/pull/684

----------------------------------------
Feature #4276: Allow use of quotes in symbol syntactic sugar for hashes
https://bugs.ruby-lang.org/issues/4276#change-48022

* Author: Tyler Benster
* Status: Assigned
* 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/

In This Thread

Prev Next