Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the difference between pipe-first and pipe-last? #11

Open
baransu opened this issue Feb 15, 2020 · 2 comments
Open

What's the difference between pipe-first and pipe-last? #11

baransu opened this issue Feb 15, 2020 · 2 comments

Comments

@baransu
Copy link

baransu commented Feb 15, 2020

Question

Offical doumentation mentions only pipe-first (->). It's only available when using together with BuckleScript and doesn't exist in native or js_of_ocaml. Belt (BuckleScript standard library) is pipe-first optimized but Reason Perversives are pipe-last (|>) optimized as well as whole Js.* namespace. What are the pros and then cons of using pipe-first over pipe-last and when one should use which?

Answer

This question hasn't been answered yet.

Further reading

@yawaramin
Copy link
Collaborator

I think we have a great answer to this one.

@chenglou
Copy link

chenglou commented Feb 18, 2020

tc39/proposal-pipeline-operator#143 (comment)

Try to use pipe first as much as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants