From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id C2EFA19E002D for ; Sat, 19 Dec 2015 20:11:59 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id AAE0DB5D8D4 for ; Sat, 19 Dec 2015 20:44:09 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 40D3818CC7B8 for ; Sat, 19 Dec 2015 20:44:10 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 56F091204AE; Sat, 19 Dec 2015 20:44:08 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id 2D4C012046A for ; Sat, 19 Dec 2015 20:44:03 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=dRezgWC7RUtbGFOMsYRvky51cW8=; b=L7vXvfPdSFrGVzJtXs qNaDnlemNfBqK2Nye87PPqXDrTe4h9tAOFXE2GevTZuQzZhcGJ+ewlgGdExCb6ox 6L0JoF/SS84ozQpoaGuRgFhl8z8lY7Ca/umjsMKG79oU+xWo4rdUA5pvF9pIscxb KoqQqQsWetUB6sDEFj9nIdiT0= Received: by filter0621p1mdw1.sendgrid.net with SMTP id filter0621p1mdw1.20286.567542FB40 2015-12-19 11:43:55.693644841 +0000 UTC Received: from herokuapp.com (ec2-54-146-198-157.compute-1.amazonaws.com [54.146.198.157]) by ismtpd0005p1iad1.sendgrid.net (SG) with ESMTP id CYN1qhwIR6qmHfcG5HdXQw Sat, 19 Dec 2015 11:43:55.814 +0000 (UTC) Date: Sat, 19 Dec 2015 11:43:55 +0000 From: alexey.muranov@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Redmine-MailingListIntegration-Message-Ids: 46971 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 5123 X-Redmine-Issue-Author: alexeymuranov X-Redmine-Issue-Assignee: matz X-Redmine-Sender: alexeymuranov X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS4hukPB2jhGjUq1ObPVCp7yKSBp7B6O2aZkbD 0BqSzklGAJg01JRCT3cN2j6EYaCLwGPApgh1R+rWOUKluy2Wtr1lR4Vx7vyX8w40MtbAwVix0YPA1s yaUEXWiKdpLa7Cc5ghN9co6N6C+6rn2ROeLN/m7O9AXXRetM5gihwie8rg== X-ML-Name: ruby-core X-Mail-Count: 72376 Subject: [ruby-core:72376] [Ruby trunk - Feature #5123] Alias Hash 1.9 as OrderedHash X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #5123 has been updated by Alexey Muranov. I have just stumbled upon this: the [Immutable collections for JavaScript](= http://facebook.github.io/immutable-js/) has both `Map` and [`OrderedMap`](= http://facebook.github.io/immutable-js/docs/#/OrderedMap). ---------------------------------------- Feature #5123: Alias Hash 1.9 as OrderedHash https://bugs.ruby-lang.org/issues/5123#change-55667 * Author: Alexey Muranov * Status: Assigned * Priority: Normal * Assignee: Yukihiro Matsumoto ---------------------------------------- I read that it was a controversial decision to make Hash in Ruby 1.9 ordere= d. 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 applicat= ion (me, for example) could explicitly use OrderedHash, and developers of R= uby would be free to redefine Hash in future versions if a better implement= ation that a doubly-linked circular list is found. (I read something about a possibility of using "red=E2=80=93black tree".) Thanks. Alexey Muranov. --=20 https://bugs.ruby-lang.org/