Skip to content

Compare pipeline syntax operators with API function calls #273

@sffc

Description

@sffc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationquestionFurther information is requested

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions