From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.0 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_PASS,T_DKIM_INVALID, T_RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 338651FAED for ; Fri, 9 Jun 2017 10:13:33 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 942071207C7; Fri, 9 Jun 2017 19:13:29 +0900 (JST) Received: from o1678916x28.outbound-mail.sendgrid.net (o1678916x28.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 6528E1207C1 for ; Fri, 9 Jun 2017 19:13:27 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=4az/APhIZtwh6064+AhmjggidF8=; b=Pr3AygJSRXZJluoF76 hFJCbTNAsxAkTeKwypswXEFfgyHHa7nhhJiP/MtPUjWzkhj3ieBl/9BnyfEjNYSt sX4W4fWnajdPnYHi+vpJVZRNYve0Y0/6kCgT959DMz7jj0SXUl9dHT6kz+Vx8dRR F/T4s71B2e6MXFtX+q8RdO3iE= Received: by filter1090p1mdw1.sendgrid.net with SMTP id filter1090p1mdw1-22150-593A74C4-2D 2017-06-09 10:13:24.306707804 +0000 UTC Received: from herokuapp.com (ec2-54-83-92-26.compute-1.amazonaws.com [54.83.92.26]) by ismtpd0002p1iad1.sendgrid.net (SG) with ESMTP id 4cSwr1-YS16LSl0i_H4p5A for ; Fri, 09 Jun 2017 10:13:24.322 +0000 (UTC) Date: Fri, 09 Jun 2017 10:13:24 +0000 From: sawadatsuyoshi@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 56662 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 13645 X-Redmine-Issue-Author: ndn X-Redmine-Sender: sawa 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS53BwUt9kpyTy3m18SDEePR5jnr24I3mi6Bjp Sr6a2gS4/IL1PXqxDpUw5BvfxbxUlXwoGHa0PJjB1K8rMDRNvTofjUbNObqVO9cpwXwxq6Lz8KcYIE JHtsgDusAVKvWDE6w7B2asU9EYykplf4uahV3bH7Q16RiffageO/lNt2UQ== X-ML-Name: ruby-core X-Mail-Count: 81636 Subject: [ruby-core:81636] [Ruby trunk Feature#13645] Syntactic sugar for indexing when using the safe navigation operator 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="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #13645 has been updated by sawa (Tsuyoshi Sawada). Duplicate of https://bugs.ruby-lang.org/issues/11813 ---------------------------------------- Feature #13645: Syntactic sugar for indexing when using the safe navigation operator https://bugs.ruby-lang.org/issues/13645#change-65332 * Author: ndn (Nikola Nenkov) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- # Proposal While it works and makes sense, this is a bit cumbersome: ```ruby hash&.[](:key) ``` Ideally, we could use something like: ```ruby hash&.[:key] ``` -- https://bugs.ruby-lang.org/