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=-1.4 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=no 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 326401F4B5 for ; Wed, 13 Nov 2019 11:18:18 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 0A3C4120B2E; Wed, 13 Nov 2019 20:18:08 +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 4722A120B26 for ; Wed, 13 Nov 2019 20:18:06 +0900 (JST) Received: by filter0040p3iad2.sendgrid.net with SMTP id filter0040p3iad2-11044-5DCBE671-52 2019-11-13 11:18:09.558845726 +0000 UTC m=+144155.523193248 Received: from herokuapp.com (unknown [54.173.56.33]) by ismtpd0014p1iad2.sendgrid.net (SG) with ESMTP id LnoL3lJ3Sgi8jjlV3bFd8A for ; Wed, 13 Nov 2019 11:18:09.543 +0000 (UTC) Date: Wed, 13 Nov 2019 11:18:09 +0000 (UTC) From: matz@ruby.or.jp Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 71471 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 16275 X-Redmine-Issue-Author: naruse X-Redmine-Sender: matz 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?bXEIHGfdFwsIlBTndiToCp=2Fmc2rfxRD2sZAksRKJIHWiGSgR6sRn85GKtxk5qX?= =?us-ascii?Q?8Msy1C=2FJA47VPfGM=2FS2q9I5BKyCk+4wOnj5tsOw?= =?us-ascii?Q?VAsuQ0aKxOuxRDSWbd4zSBiZUuqUBAiEGMpC2lV?= =?us-ascii?Q?dgKls+HKjFwRi=2Fa6zslXprsukX9pz9PpI4Gu5Xn?= =?us-ascii?Q?Gq9SE15gXtekF4KIbwUgWOHXk4+VgL0oT1Q=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 95842 Subject: [ruby-core:95842] [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 matz (Yukihiro Matsumoto). @zverok I should have explained the reason right after the developer meeting. Actually I was asked to do so from the other members of the meeting. Sorry for my laziness. Matz. ---------------------------------------- Feature #16275: Revert `.:` syntax https://bugs.ruby-lang.org/issues/16275#change-82675 * Author: naruse (Yui NARUSE) * Status: Closed * 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. ---Files-------------------------------- dot-colon-vs-std-benchmark.png (8.69 KB) -- https://bugs.ruby-lang.org/