I was excited today to see the Function.pipe/flow proposal.
I think the direction of standardizing ECMAScript APIs to solve the well-known problems of callback complexity is something that should be explored.
The Pipeline champions considered "hack style" and "F# style" options for the pipeline proposal. However, it would be useful to see a third "API style" option. In other words, take the examples that motivate the pipeline syntax operator and show how they would work with Function.pipe, Function.pipeAsync, etc.
I would note that the "API style" is already popularized by the async package on npm, so there is a deep set of prior art for this.
I was excited today to see the Function.pipe/flow proposal.
I think the direction of standardizing ECMAScript APIs to solve the well-known problems of callback complexity is something that should be explored.
The Pipeline champions considered "hack style" and "F# style" options for the pipeline proposal. However, it would be useful to see a third "API style" option. In other words, take the examples that motivate the pipeline syntax operator and show how they would work with Function.pipe, Function.pipeAsync, etc.
I would note that the "API style" is already popularized by the async package on npm, so there is a deep set of prior art for this.