tc39 / proposal-eventual-send

TC39 Eventual Send proposal
44 stars 6 forks source link

Eventual pipelining? #23

Open dead-claudia opened 3 years ago

dead-claudia commented 3 years ago

In light of things like optional pipelining, how would this fit into that potential grid?

Not to imply it should or shouldn't be done, but I do want that potential orthogonality considered.

js-choi commented 3 years ago

Despite sharing the word “pipe” in their name, the pipe operator and eventual send’s remote-object pipelines are indeed orthogonal, and they can work together.

const fileP = target
|> E(^).openDirectory(dirName)
|> E(^).openFile(fileName);

We should create a section addressing this in the pipe-operator explainer. (Anyone, please feel free to open a new issue in tc39/proposals-pipeline-operator, or I can later.)

[Edit: This will be addressed in tc39/proposal-pipeline-operator#241.]