ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: Anurag Priyam <anurag08priyam@gmail.com>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:38740] Re: [Ruby 1.9 - Feature #5123][Open] Alias Hash 1.9 as OrderedHash
Date: Wed, 3 Aug 2011 16:02:22 +0900	[thread overview]
Message-ID: <CAD1m08UYbWbTgHR8jTHYVgEed-BzUk=ByNgzP3Th_gkcean-6Q@mail.gmail.com> (raw)
In-Reply-To: <redmine.issue-5123.20110731161908@ruby-lang.org>

> 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 "red–black tree".)

This sounds like one of those variable names with a type prefixed to
it, like sequence_string, or sequence_array. They look ugly. It would
have mad more sense if Ruby were ever to ship with two different Hash
implementations. Besides, the aliasing can be done at the application
level too. So if the Hash implementation changes tomorrow, you are
free to re-alias to some other ordered hash implementation.

-- 
Anurag Priyam
http://about.me/yeban/

  parent reply	other threads:[~2011-08-03  6:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-31  7:19 [ruby-core:38623] [Ruby 1.9 - Feature #5123][Open] Alias Hash 1.9 as OrderedHash Alexey Muranov
2011-08-02  7:40 ` [ruby-core:38697] [Ruby 1.9 - Feature #5123][Assigned] " Kazuhiro NISHIYAMA
2011-08-02  7:54 ` [ruby-core:38698] [Ruby 1.9 - Feature #5123] " Michael Edgar
2011-08-03  1:29 ` [ruby-core:38732] " Thomas Sawyer
2011-08-03  7:02 ` Anurag Priyam [this message]
2011-08-06 22:23 ` [ruby-core:38827] " Alexey Muranov
2011-08-06 22:25 ` [ruby-core:38828] " Alexey Muranov
2012-10-27 15:00 ` [ruby-core:48483] [ruby-trunk " yhara (Yutaka HARA)
2012-10-31 20:09 ` [ruby-core:48680] " headius (Charles Nutter)
2012-10-31 20:29 ` [ruby-core:48683] " alexeymuranov (Alexey Muranov)
2012-11-22  1:47 ` [ruby-core:49847] " lancel (lancel lancel)
2012-11-22  6:29 ` [ruby-core:49863] " uggsoutlet (uggsoutlet uggsoutlet)
2015-12-19 11:43 ` [ruby-core:72376] [Ruby trunk " alexey.muranov
2018-02-20  8:19 ` [ruby-core:85678] [Ruby trunk Feature#5123][Rejected] " matz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAD1m08UYbWbTgHR8jTHYVgEed-BzUk=ByNgzP3Th_gkcean-6Q@mail.gmail.com' \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).