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.9 required=3.0 tests=BAYES_00, 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 264631F462 for ; Fri, 14 Jun 2019 05:42:11 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id EEB96120B93; Fri, 14 Jun 2019 14:42:04 +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 97814120B94 for ; Fri, 14 Jun 2019 14:42:02 +0900 (JST) Received: by filter0058p3las1.sendgrid.net with SMTP id filter0058p3las1-23542-5D0333AB-1D 2019-06-14 05:42:03.809764272 +0000 UTC m=+46704.740421158 Received: from herokuapp.com (unknown [107.21.31.174]) by ismtpd0036p1mdw1.sendgrid.net (SG) with ESMTP id rWxHmPWORaOzPFQ9fEN4Yg for ; Fri, 14 Jun 2019 05:42:03.632 +0000 (UTC) Date: Fri, 14 Jun 2019 05:42:03 +0000 (UTC) From: chris@dejimata.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 68615 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 15799 X-Redmine-Issue-Author: nobu X-Redmine-Sender: shioyama 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?EFL59YdbAyCecc8e4whYjBVw6292J41yJbPBa2tJPiLfT9DtMOAPcJD1+sumwb?= =?us-ascii?Q?QivfBIKtO6ZpvyKrD76coxRs6Q1IMOYNi4y2FhQ?= =?us-ascii?Q?s5z8PmIldvCaM1ZrCOK4zM9RnfnrVhrWwluPQCS?= =?us-ascii?Q?clmD4TFvInnkatmCtkCyYIrwLOv39JSYudWUFA+?= =?us-ascii?Q?2OklGxkRPfFSRhtAXf8Rl0Vx=2Fztp4dYAiNw=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 93129 Subject: [ruby-core:93129] [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 shioyama (Chris Salzberg). I think one big issue here is simply the choice of symbols for this thing. If it were any other symbols, I suspect a lot of people would not have reacted so emotionally. To most Rubyists who know it, `|>` has a distinctive meaning. It's that bit of functional programming that they want, that they wish Ruby had, that Elixir has had from day one. Whether you like it or not, the `.` alias here is entirely different from a "pipeline". Giving it the same name is bound to frustrate a lot of people (like myself) who have been hoping and waiting for the day when Ruby would support function composition in a more natural way. Barring a revert, how about considering a different pair of symbols for this thing? That would seem to be a reasonable compromise. ---------------------------------------- Feature #15799: pipeline operator https://bugs.ruby-lang.org/issues/15799#change-78558 * 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/