ReScript also has a pipe operator ->. Interestingly they split the pipeline into two separate features — the pipe and the optional pipe placeholder.
->
pipeline
pipe
Data-first and data-last: a comparison
Most of the functions in JS are n-ary (n > 1) and "Data-first". The "triangle pipe" has more utility in "Data-last" languages that support currying.
n > 1
BuckleScript Pipe Operator API Review
In the case of Elixir the pipe operator targets the first argument of the function as currying isn't supported.
Yes, ReScript is also fascinating !! … thank God we have better alternatives to just JavaScript or TypeScript !!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
ReScript also has a pipe operator
->
. Interestingly they split thepipeline
into two separate features — thepipe
and the optional pipe placeholder.Data-first and data-last: a comparison
Most of the functions in JS are n-ary (
n > 1
) and "Data-first". The "triangle pipe" has more utility in "Data-last" languages that support currying.BuckleScript Pipe Operator API Review
In the case of Elixir the pipe operator targets the first argument of the function as currying isn't supported.
Yes, ReScript is also fascinating !! … thank God we have better alternatives to just JavaScript or TypeScript !!