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=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 C69961F462 for ; Thu, 13 Jun 2019 13:23:40 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 542DE120B34; Thu, 13 Jun 2019 22:23:35 +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 7EC09120A18 for ; Thu, 13 Jun 2019 22:23:31 +0900 (JST) Received: by filter0145p3las1.sendgrid.net with SMTP id filter0145p3las1-11814-5D024E53-2 2019-06-13 13:23:31.091714676 +0000 UTC m=+53901.217104134 Received: from herokuapp.com (unknown [52.207.231.138]) by ismtpd0054p1mdw1.sendgrid.net (SG) with ESMTP id 2R5MDJMqSPuJAbVmDVQ4RA for ; Thu, 13 Jun 2019 13:23:31.000 +0000 (UTC) Date: Thu, 13 Jun 2019 13:23:31 +0000 (UTC) From: dgutov@yandex.ru Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 68596 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 15799 X-Redmine-Issue-Author: nobu X-Redmine-Sender: dgutov 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?bA0qlBIoX6Dil5vyrqCGf3LLbEUlWd8+zlTx3AgkGsGNbdQqtTnqKMnfRIUVO2?= =?us-ascii?Q?+8fwSoHRp0WCNWWZBXRztNlalY1iIEXWTLhN3xj?= =?us-ascii?Q?CL66F94AWLZsJFLr8ATMkpUdmV3doOOdSittyd5?= =?us-ascii?Q?CGecqnVqN1c95DTh3h3hct=2Fi4cDbrLDY6+LOsiw?= =?us-ascii?Q?a9OCoGsb0TknMDb=2FUUgGJXLiql5Sl0DsVMw=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 93110 Subject: [ruby-core:93110] [Ruby trunk Feature#15799] pipeline 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 #15799 has been updated by dgutov (Dmitry Gutov). "I don't have to use it" doesn't work in the real world where you have projects with multiple contributors, dependencies and multi-year history. This new "feature" does not add *anything* except a new way to write a method call, and will confuse anybody familiar with pipeline operators in other (functional) languages. Please revert. And FFS, could you slow down on adding new syntax without due discussion? Also see the thoughtful comments on the commit by others: https://github.com/ruby/ruby/commit/f169043d#commitcomment-33926163 ---------------------------------------- Feature #15799: pipeline operator https://bugs.ruby-lang.org/issues/15799#change-78535 * Author: nobu (Nobuyoshi Nakada) * Status: Closed * Priority: Normal * Assignee: * Target version: ---------------------------------------- Implemented the pipeline operator `|>`, a topic of "ruby committers vs the world" in RubyKaigi 2019. Also a casual idea of rightward assignment. ```ruby 1.. |> take 10 |> map {|e| e*2} |> (x) p x #=> [2, 4, 6, 8, 10, 12, 14, 16, 18, 20] ``` https://github.com/nobu/ruby/tree/feature/pipeline -- https://bugs.ruby-lang.org/