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=-2.9 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,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 204F51F461 for ; Sun, 30 Jun 2019 11:53:46 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 173801209EB; Sun, 30 Jun 2019 20:53:40 +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 DDB6B12098B for ; Sun, 30 Jun 2019 20:53:37 +0900 (JST) Received: by filter0047p3las1.sendgrid.net with SMTP id filter0047p3las1-32743-5D18A2C2-2B 2019-06-30 11:53:38.93855389 +0000 UTC m=+149240.746454954 Received: from herokuapp.com (unknown [3.94.122.70]) by ismtpd0003p1iad1.sendgrid.net (SG) with ESMTP id No9yUobeRQqex8Z9I9iOHw for ; Sun, 30 Jun 2019 11:53:38.798 +0000 (UTC) Date: Sun, 30 Jun 2019 11:53:39 +0000 (UTC) From: eregontp@gmail.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 68921 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 15799 X-Redmine-Issue-Author: nobu X-Redmine-Sender: Eregon 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?KippOI8ZHtTweq7XfQzW93937kJ4QNWwSBuHnaMEcr3vR4iKHqRcj=2FhmtxHKHT?= =?us-ascii?Q?boKKEwlo+y+BK6ZUX5VyN24u=2FeJRbBtGbwv6U0u?= =?us-ascii?Q?IeQK8Vidbv=2FrWf=2FBYuVW8vhlLGK9Pi9hR5UlV6+?= =?us-ascii?Q?5MTsA75il5bZrCaMfbQ8dD19ebMlEExxLUjudag?= =?us-ascii?Q?EZvcT+rtVOnb63+RRP2tHepugMBrkJNTnBw=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 93428 Subject: [ruby-core:93428] [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 Eregon (Benoit Daloze). I propose to put the pipeline operator behind a flag, disabled by default, until the major issues with it reported here are solved: #15966. I think this experimental feature needs more discussion to improve it, and it shouldn't be enforced to happen before the Ruby 2.7 release deadline. ---------------------------------------- Feature #15799: pipeline operator https://bugs.ruby-lang.org/issues/15799#change-78972 * 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/