For chains of function calls, I often write two versions of the code: one with |>
and one without. Then I keep the one that looks most readable. At a guess I’d say I keep |>
30% to 50% of the time.
I’ll probably use it more often if/when Julia finally supports the _
syntax for partial function application, since that would increase the number of cases where |>
makes the code more readable. (There are packages like Pipe.jl and Chain.jl to help with that but the readability improvement doesn’t always outweigh the cost of an extra dependency.)