On 7 February 2013 17:52, alexeymuranov (Alexey Muranov) <
redmine / ruby-lang.org> wrote:

>
> =begin
> In my opinion, (({Hash#keys})) should return an instance of (({Set})).
> =end
>
>
Is this related to an earlier request to create OrderedHash as an alias of
Hash?  If that were to happen, I'd be happy if OrderedHash#keys returned an
Array, and Hash#keys returned a Set.  However if Hash remains explicitly
ordered, Hash#keys should be likewise explicitly ordered (i.e. an Array).
Unless we're also adding to spec that Set is insertion-ordered.

-- 
  Matthew Kerwin, B.Sc (CompSci) (Hons)