3 ms·
Honestly I would much rather read it as: 5 |> Plus (20) |> Equals? (25) Why? Because when you aggressively use infix notation, there is operation order prece
by dnautics 9y ago
Honestly I would much rather read it as:
5
|> Plus (20)
|> Equals? (25)
Why? Because when you aggressively use infix notation, there is operation order precedence ambiguity which is not there in polish (functional) notation. The pipeline idiom creates a "main line of computation" which really covers about 80% of use cases. I'd rather not have to remember so many things (I am getting old) and some notations are far clearer than others.
- isidor3 9y agoIn APL and J at least, all operators have the same precedence, and always associate to the right, so there's never any ambiguity.