Re:TC39 Pipeline Operator – Hack vs. F#
by pygy_ on Tuesday September 14, 2021 @05:46PM
(#28531825)
When you look at a Ramda-based JS code base, all there is to look at is function calls. Such code eschews most statements.
Piping is a common operation, though, and having dedicated syntax makes the code more readable. For those code bases that use curried, unary functions, the F# proposal is perfect (this is the original motivation behind the operator).
The hack-style pipe syntax that has been chosen is much worse in that regard, which is disappointing for the very folks that requested its addition.
Piping is a common operation, though, and having dedicated syntax makes the code more readable. For those code bases that use curried, unary functions, the F# proposal is perfect (this is the original motivation behind the operator).
The hack-style pipe syntax that has been chosen is much worse in that regard, which is disappointing for the very folks that requested its addition.