From: dgutov@... Date: 2019-06-13T13:23:31+00:00 Subject: [ruby-core:93110] [Ruby trunk Feature#15799] pipeline operator 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/ Unsubscribe: