From: adriano.mitre@... Date: 2016-05-05T20:35:55+00:00 Subject: [ruby-core:75375] [Ruby trunk Bug#12352] New hash syntax broken for numeric keys Issue #12352 has been reported by Adriano Mitre. ---------------------------------------- Bug #12352: New hash syntax broken for numeric keys https://bugs.ruby-lang.org/issues/12352 * Author: Adriano Mitre * Status: Open * Priority: Normal * Assignee: * ruby -v: ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- [[Matz himself showed in RubyConf 2015 the following example]](https://www.youtube.com/watch?v=LE0g2TUsJ4U&t=13m04s): ~~~ h = { 1: 2, 2: 4, 3: 6 } ~~~ Which gives ~~~ SyntaxError: unexpected ':', expecting => h = { 1: 2, 2: 4, 3: 6 } ^ ~~~ but which should give identical results to ~~~ >> h = { 1 => 2, 2 => 4, 3 => 6 } => {1=>2, 2=>4, 3=>6}��� ~~~ -- https://bugs.ruby-lang.org/ Unsubscribe: