Issue #3963 has been updated by trans (Thomas Sawyer).


Not much difference, except perhaps for the more flexible #convert_key idea. I was just clarifying in this ticket b/c of some of the comments made about Map specifically.

The conversation referenced did not seem to have any kind of conclusion. I see that matz indicated a preference for a possible "compare by string" directive. So maybe #convert_key is not such a bad notation as I thought?

----------------------------------------
Feature #3963: Map class in standard library
https://bugs.ruby-lang.org/issues/3963#change-25205

Author: trans (Thomas Sawyer)
Status: Rejected
Priority: Normal
Assignee: akr (Akira Tanaka)
Category: 
Target version: 2.0.0


=begin
 Could we get a class like Ara Howard's Map (http://github.com/ahoward/map) included in Ruby's standard library?
 
 Map is a class that would get a lot of usage. We already see similar classes in other code like Rail's with it's HashWithIndifferentAccess, and my own spin-off from Ruby Facets, the Stash class. It's just one of those things that is genuinely useful. I am not partial to any particular implementation, but I trust Ara's skills and the short name "Map" is pretty nice too.
 
 (Just a side note: Personally I'd prefer the functionality of Map in place of Hash itself, since it has the functionality people want 80% or more of the time, but I realize that is likely to have too many backward compatibility issues for real consideration.)
=end



-- 
http://bugs.ruby-lang.org/