DEV Community

Discussion on: Future Javascript: Javascript Pipeline Operators

Collapse
 
csaltos profile image
Carlos Saltos • Edited

If you don’t want to wait you can use them right now with Elm, check them out at elm-lang.org/docs/syntax#operators … includes a lot of other cool things, specially a very helpful and fast compiler

Collapse
 
peerreynders profile image
peerreynders

ReScript also has a pipe operator ->. Interestingly they split the pipeline into two separate features — the pipe 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.

Collapse
 
csaltos profile image
Carlos Saltos

Yes, ReScript is also fascinating !! … thank God we have better alternatives to just JavaScript or TypeScript !!