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_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 347F31F453 for ; Sat, 27 Apr 2019 10:29:01 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id B2131120AC4; Sat, 27 Apr 2019 19:28:55 +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 1E5A3120996 for ; Sat, 27 Apr 2019 19:28:52 +0900 (JST) Received: by filter0098p3mdw1.sendgrid.net with SMTP id filter0098p3mdw1-20009-5CC42EE5-16 2019-04-27 10:28:53.621489007 +0000 UTC m=+136498.964566420 Received: from herokuapp.com (unknown [54.234.188.196]) by ismtpd0036p1iad2.sendgrid.net (SG) with ESMTP id J9GG93zhTjCEQWD_4ZTwcQ for ; Sat, 27 Apr 2019 10:28:53.600 +0000 (UTC) Date: Sat, 27 Apr 2019 10:28:53 +0000 (UTC) From: duerst@it.aoyama.ac.jp Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 67916 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 15799 X-Redmine-Issue-Author: nobu X-Redmine-Sender: duerst 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?uQY=2F2xNrNfHHTWbKn6MBvvzfU5Pqk9I4lnOVb0CFDus4AmOEnXTSBnt2oVgc6e?= =?us-ascii?Q?uE3c6dS4q2DuWb8J6j951BFl4OXTKwD9618pjTo?= =?us-ascii?Q?++DVtpODoRqtRPLvoTCaPMaMmFNvbsT9nS+5leR?= =?us-ascii?Q?L5HP4EfDPMV2CskRAhKgfAYaVqJNDxKg2Wq68q4?= =?us-ascii?Q?A8NPePm4PQ3uDs2hmjlGi9jotRz2uDaQcEg=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 92433 Subject: [ruby-core:92433] [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="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #15799 has been updated by duerst (Martin D=FCrst). Thanks for creating an issue. The |> symbol looks reasonable to me, but I'd like to see more examples whe= re this notation is preferable to = ```ruby (1..).take(10).map {|x| x*2} ``` As for the assignment, just using parentheses looks confusing to me. It's c= lear we can't use `>=3D` or `|=3D`, but `|>=3D` or some other combination w= ould be much clearer than just parentheses. ---------------------------------------- Feature #15799: pipeline operator https://bugs.ruby-lang.org/issues/15799#change-77788 * Author: nobu (Nobuyoshi Nakada) * Status: Open * 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 {|x| x*2} |> (x) p x #=3D> [2, 4, 6, 8, 10, 12, 14, 16, 18, 20] ``` https://github.com/nobu/ruby/tree/feature/pipeline -- = https://bugs.ruby-lang.org/ Unsubscribe: