Hacker News new | past | comments | ask | show | jobs | submit login

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.




In APL and J at least, all operators have the same precedence, and always associate to the right, so there's never any ambiguity.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: