4 ms·
On readability, all the code samples here are using pipe operators spread out on one line, but for anything nontrivial I think the point is to use it thusly:
by fenomas 9y ago
On readability, all the code samples here are using pipe operators spread out on one line, but for anything nontrivial I think the point is to use it thusly:
initialValue
|> doSomething
|> doSomethingElse
|> reportResults
In which case I think it's extremely readable compared to the alternatives.
- deleted 9y ago[deleted]
- djedr 9y agoCompare: pipe(initialValue , doSomething , doSomethingElse , reportResults ) Is it really so much more readable with the operator?