I follow a few rules since it’s so easy to get overzealous with pipelining. I’m gonna call these pizza rules here for fun.
- I only pizza if there are two or more values in the chain
- If the code is short enough to be subjectively fine on one line, I get suspicious and probably will refactor it to use parens
- I try to never pizza in HTML code[1]
- I never use left pizza except when I’m avoiding parens around a function (in, say, elm-test tests)
[1]: I gave a talk at Elm in the Spring where I recommended people do that and now I kinda regret making such a strong recommendation! I think it’s OK but the HTML-like pattern is also fine and has well-understood syntax and semantics such that it’s maybe a better pattern. Still depends highly on the team.