From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id BF5E61F9FC for ; Sun, 28 Mar 2021 03:17:58 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id CF5091209EF; Sun, 28 Mar 2021 12:16:55 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 8F1C61209ED for ; Sun, 28 Mar 2021 12:16:52 +0900 (JST) Received: by filterdrecv-p3iad2-7d7c446bd4-mhgkr with SMTP id filterdrecv-p3iad2-7d7c446bd4-mhgkr-20-605FF55C-29 2021-03-28 03:17:48.81714363 +0000 UTC m=+377088.564642891 Received: from herokuapp.com (unknown) by ismtpd0136p1iad2.sendgrid.net (SG) with ESMTP id ztPZcgsVR2SL5cHXyI5sxg for ; Sun, 28 Mar 2021 03:17:48.769 +0000 (UTC) Date: Sun, 28 Mar 2021 03:17:48 +0000 (UTC) From: marcandre-ruby-core@marc-andre.ca Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 79102 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Feature X-Redmine-Issue-Id: 17472 X-Redmine-Issue-Author: naruse X-Redmine-Sender: marcandre 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: =?us-ascii?Q?6=2FIMxCQLDposcQf5wmbDAtfaKduBAO0bKyhL3BGZtMQ5q7K2TvpbN6A7JIyt9E?= =?us-ascii?Q?aO5m9xAi6NZkFJC+nNmLg4o7tiSm9WPgyy0p8ty?= =?us-ascii?Q?0fGSl7bvqTw0kZJgpFHxbh+feZ3wbg+H2AF97Aq?= =?us-ascii?Q?L5cN9CfFZ8AHvG1uV+hoY3t567mSRixlq7RExGF?= =?us-ascii?Q?eB9Jq6fo2zz0KDyYnHZpqhkZJLcU2mAnuwOzFU0?= =?us-ascii?Q?YUS2SKhsrH2eMVxhFhjDpQTLo9DOgEoSEQO0z0?= To: ruby-core@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-core X-Mail-Count: 103067 Subject: [ruby-core:103067] [Ruby master Feature#17472] HashWithIndifferentAccess like Hash extension 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: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #17472 has been updated by marcandre (Marc-Andre Lafortune). duerst (Martin D=FCrst) wrote in #note-20: > Javascript doesn't have symbols in the first place Actually, it does (since ES 6): https://developer.mozilla.org/en-US/docs/We= b/JavaScript/Reference/Global_Objects/Symbol String are meant for input/output of text. Symbols are identifier for devel= opers. A program written in English for French users would have its symbols= in English and its strings in French... In any case, that some people disagree with the validity of the distinction= of Symbols and Strings, it is not going away. There's not much point discu= ssing that. ---------------------------------------- Feature #17472: HashWithIndifferentAccess like Hash extension https://bugs.ruby-lang.org/issues/17472#change-91128 * Author: naruse (Yui NARUSE) * Status: Open * Priority: Normal * Target version: 3.1 ---------------------------------------- Rails has [ActiveSupport::HashWithIndifferentAccess](https://api.rubyonrail= s.org/classes/ActiveSupport/HashWithIndifferentAccess.html), which is widel= y used in Rails to handle Request, Session, ActionView's form construction,= ActiveRecord's DB communication, and so on. It receives String or Symbol a= nd normalize them to fetch the value. But it is implemented with Ruby. If w= e provide C implementation of that, Rails will gain the performance improve= ment. summary of previous discussion: https://github.com/rails/rails/pull/40182#i= ssuecomment-687607812 -- = https://bugs.ruby-lang.org/ Unsubscribe: