https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112016-05-06T01:36:00ZRuby Issue Tracking SystemRuby master - Feature #12352: New hash syntax broken for numeric keyshttps://bugs.ruby-lang.org/issues/12352?journal_id=585042016-05-06T01:36:00Zshyouhei (Shyouhei Urabe)shyouhei@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>matz (Yukihiro Matsumoto)</i></li><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Feature</i></li><li><strong>Project</strong> changed from <i>Ruby master</i> to <i>14</i></li></ul><p>Matz, do you want numeric keys for new hash syntax?</p> Ruby master - Feature #12352: New hash syntax broken for numeric keyshttps://bugs.ruby-lang.org/issues/12352?journal_id=586532016-05-17T05:50:53Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul></ul><p>Although I admit my mistake, I reject this for consistency.<br>
If I allow this syntax, it had to generate</p>
<pre><code class="ruby syntaxhl" data-language="ruby"><span class="n">h</span> <span class="o">=</span> <span class="p">{</span><span class="mi">1</span><span class="p">:</span> <span class="mi">2</span><span class="p">}</span>
<span class="nb">p</span> <span class="n">h</span> <span class="c1"># => {:"1", 2}</span>
</code></pre>
<p>and no one want this.</p>
<p>Matz.</p> Ruby master - Feature #12352: New hash syntax broken for numeric keyshttps://bugs.ruby-lang.org/issues/12352?journal_id=586542016-05-17T05:51:12Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Rejected</i></li></ul> Ruby master - Feature #12352: New hash syntax broken for numeric keyshttps://bugs.ruby-lang.org/issues/12352?journal_id=955182021-12-23T23:40:09Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<ul><li><strong>Project</strong> changed from <i>14</i> to <i>Ruby master</i></li></ul>