Hence I said that operators are more readable for longer formulas.
mult(add(a, b, c, d), e)
:)
At that point,
(* (+ a b c d) e)> (a + b + c + d) * e
a
|> add(b)
|> add(c)
|> add(d)
|> mult(e)
> mult(add(a, add(b, add(c, d))), e) c
|> add(d)
|> add(b, _)
|> add(a, _)
|> mult(e)
Re:Partial Operator Precedence
by bennettnate5 on Thursday November 05, 2026 @08:38AM
(#50378915)
What a lovely pipe operator you have there to chain the functions and contribute to code readability :)
There is also some irony that the function style makes the order of the different addition operations explicit - which in this case is not helpful, because the addition operation is associative. So the parentheses here are just noise.
(Well, almost. You might have weird floating point issues or other bugs, where the associativity does not apply anymore and knowing the evaluation order would be useful. But I think this would be rare situations)
(a + b + c + d) * e
mult(add(a, add(b, add(c, d))), e)