News for hackers. Stuff that matters.
Re:Interesting features from various modern programming lang... by ramchip on Friday November 10, 2017 @08:38AM (#15669762)
It works with functions rather than methods. So you can do something like this, calling functions from various modules / services:

    order = %{amount: 123, customer_id: 45}
    result = order
      |> Orders.validate()
      |> Database.save()
      |> PubSub.publish()
whereas with method chaining you can only call methods of the object being passed around.

There are no comments on this comment yet.