Project

General

Profile

Actions

Bug #5860

closed

Hash literal '{:a==>1}'

Added by hasari (Hiro Asari) over 12 years ago. Updated over 12 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0dev (2011-12-31 trunk 34165) [x86_64-darwin11.2.0]
Backport:
[ruby-core:41963]

Description

=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

Updated by naruse (Yui NARUSE) over 12 years ago

  • Status changed from Open to Rejected

Well trained rubyist will see a setter-like property symbol :a=.

Actions

Also available in: Atom PDF

Like0
Like0