Issue #7796 has been updated by alexeymuranov (Alexey Muranov).


Matthew, in some sense it is indeed related to #5123, because both are about Set and Hash abstractions.  However, it is independent, because as long as Hash is ordered, so is Set.  If ever #5123 is accepted and OrderedHash is separated from Hash, there will be also OrderedSet in addition to Set.


Marin, i will think about your request, but i do not really think in "use cases".  I just think that "keys" of a Hash behave as a Set and not as an Array.
----------------------------------------
Feature #7796: Hash#keys should return a set
https://bugs.ruby-lang.org/issues/7796#change-35995

Author: alexeymuranov (Alexey Muranov)
Status: Feedback
Priority: Normal
Assignee: 
Category: core
Target version: Next Major


=begin
In my opinion, (({Hash#keys})) should return an instance of (({Set})).
=end



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