I would love the pipeline operator in Ruby, but unfortunately the unstable feature [0] was removed:
1.. |> take 10 |> map {|e| e*2} |> (x)
> After experiments, |> have caused more confusion and controversy far more than I expected. I still value the chaining operator, but drawbacks are bigger than the benefit. So I just give up the idea now. Maybe we would revisit the idea in the future (with different operator appearance).
Comments
I would love the pipeline operator in Ruby, but unfortunately the unstable feature [0] was removed:
> After experiments, |> have caused more confusion and controversy far more than I expected. I still value the chaining operator, but drawbacks are bigger than the benefit. So I just give up the idea now. Maybe we would revisit the idea in the future (with different operator appearance).[0]: https://bugs.ruby-lang.org/issues/15799