News for hackers. Stuff that matters.
Re:Interesting features from various modern programming lang... by bontaq on Friday November 10, 2017 @08:48AM (#15669817)
I think it's something more like making this better, not necessarily replacing method chaining.

  result = exclaim(capitalize(doubleSay("hello")))
and the pipe makes it simpler to read, especially if you're chaining some functions that can take additional arguments

  let result = "hello"
    |> sayTimes(3)
    |> capitalize
    |> exclaim

There are no comments on this comment yet.