Project

General

Profile

Actions

Feature #8939

closed

symbol / string invariance (for hashes)

Added by Sing9898 (Sing Lou) about 11 years ago. Updated about 11 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:57316]

Description

hash={key:"value"}
hash["key"] should return "value"

hash={"key"=>"value"}
hash[:key] should return "value"


Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Feature #7797: Hash should be renamed to StrictHash and a new Hash should be created to behave like AS HashWithIndifferentAccessRejectedmatz (Yukihiro Matsumoto)02/07/2013Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0