Issue #5123 has been updated by matz (Yukihiro Matsumoto).

Status changed from Assigned to Rejected

Today, everyone knows Ruby's Hash is a OrderedHash.

Matz.


----------------------------------------
Feature #5123: Alias Hash 1.9 as OrderedHash
https://bugs.ruby-lang.org/issues/5123#change-70474

* Author: alexeymuranov (Alexey Muranov)
* Status: Rejected
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
* Target version: 
----------------------------------------
I read that it was a controversial decision to make Hash in Ruby 1.9 ordered.
It is not clear if the present implementation is the best possible.
I would like to express my thought.

It would be nice if the ordered Hash in Ruby 1.9 was aliased as OrderedHash.
That way people who rely on preserving the insertion order in some application (me, for example) could explicitly use OrderedHash, and developers of Ruby would be free to redefine Hash in future versions if a better implementation that a doubly-linked circular list is found.
(I read something about a possibility of using "redblack tree".)

Thanks.

Alexey Muranov.



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

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>