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-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.6 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 973C91F4C0 for ; Sat, 26 Oct 2019 02:45:06 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 25702120B87; Sat, 26 Oct 2019 11:44:56 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id DE5A8120A66 for ; Sat, 26 Oct 2019 11:44:53 +0900 (JST) Received: by filter0167p3mdw1.sendgrid.net with SMTP id filter0167p3mdw1-6654-5DB3B329-F 2019-10-26 02:44:57.257801127 +0000 UTC m=+360457.244664116 Received: from herokuapp.com (unknown [54.234.136.181]) by ismtpd0041p1mdw1.sendgrid.net (SG) with ESMTP id ZSWdyFnaTbOJBe6vSwbl4w for ; Sat, 26 Oct 2019 02:44:57.155 +0000 (UTC) Date: Sat, 26 Oct 2019 02:44:57 +0000 (UTC) From: daniel@dan42.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 71150 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 16275 X-Redmine-Issue-Author: naruse X-Redmine-Sender: Dan0042 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?8sy4RigFvRTdBfCVJrT9zb2J88PC92TMQwdNgaWYaq4hRDfja7GPE2QSCKmT5g?= =?us-ascii?Q?NKhg8kNB5ypFpkRN6uhAWRSAu31Bt+6Iw8Clem=2F?= =?us-ascii?Q?tM7XIqonQUcd9AkgUNDf1Rme8mBcdzpgSvbLvnJ?= =?us-ascii?Q?WB7ZoJBIkMCJvjWfV4qZJvTJ+gV7vbuHSKUKZWI?= =?us-ascii?Q?sD0v=2FkRohGTSE?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 95558 Subject: [ruby-core:95558] [Ruby master Feature#16275] Revert `.:` syntax 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 #16275 has been updated by Dan0042 (Daniel DeLorme). matz (Yukihiro Matsumoto) wrote: > I am for adding syntax sugar for method reference. But I don't like proposed syntax (e.g. ->). > Any other idea? > Out of [ruby-core:85038](https://bugs.ruby-lang.org/issues/13581#change-69758) candidates, `.:` looks best to me (followed by `:::`). > Let me consider it for a while. So clearly the syntax sugar for method reference is something that we *will* have. Eventually if not now. After the "let me consider", nobu implemented it with `.:` but was there ever a final word from Matz? ---------------------------------------- Feature #16275: Revert `.:` syntax https://bugs.ruby-lang.org/issues/16275#change-82336 * Author: naruse (Yui NARUSE) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- `obj.:method` is introduced at r66667 by #12125 and #13581. It encourages the functional programming style in Ruby. But this shorthand syntax is just for methods of `self` without arguments. It causes another feature requests like #16273 (and lambda compositions like #15428). Such features will introduce a new view of Ruby but no one illustrates the whole picture yet. I worried about such patch work may cause a conflict with future expansion of functional programing style or a just a garbage feature. `.:` syntax is introduced in 2.7.0 preview1, not released in production yet. How about reverting at this time and re-introduce with a big picture. -- https://bugs.ruby-lang.org/