Issue #5860 has been updated by Yui NARUSE.
Status changed from Open to Rejected
Well trained rubyist will see a setter-like property symbol :a=.
----------------------------------------
Bug #5860: Hash literal '{:a==>1}'
https://bugs.ruby-lang.org/issues/5860
Author: Hiro Asari
Status: Rejected
Priority: Normal
Assignee:
Category: core
Target version:
ruby -v: ruby 2.0.0dev (2011-12-31 trunk 34165) [x86_64-darwin11.2.0]
=begin
There is an esoteric hash literal construct possible in the Ruby grammar:
{:a==>1}
Looking at ((<parse.y|URL:https://github.com/ruby/ruby/blob/731e45216ae4adf4122f0515d3056e1579efb0f9/parse.y#L8408-8418>)), I am pretty sure this is intended behavior, but I wanted to make sure that this is so.
=end
--
http://redmine.ruby-lang.org