Actions
Bug #20433
openHash.inspect for some hash returns syntax invalid representation
Description
For these hashes, Hash.inspect returns a syntax invalid representation:
{ :a! => 1 } # {:a!=>1}
{ :a? => 1 } # {:a?=>1}
{ :* => 1 } # {:*=>1}
{ :== => 1 } # {:===>1}
{ :< => 1 } # {:<=>1}
eval(hash.inspect)
will raise SyntaxError.
Although inspect does not guarantee that the result can be eval-ed, it'd be confusing for these few cases.
Maybe related to https://bugs.ruby-lang.org/issues/20235
Actions
Like0
Like0Like0Like0Like0Like0Like0