Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add pipeline operator "loose" mode #10135
Right now, the pipeline operator (
Here's an example from the pipeline proposal.
input |> # - 3 |> -# |> # * 2 |> Math.max(#, 0) |> console.log;
var _ref, _ref2, _ref3, _ref4, _input; _ref = ( _ref2 = ( _ref3 = ( _ref4 = ( _input = input, _input - 3 ), -_ref4 ), _ref3 * 2 ), Math.max(_ref2, 0) ), console.log(_ref);
console.log( Math.max( -(input - 3) * 2, 0 ) );
To avoid wasted effort, it's probably best to wait until TC39 settles on a specific syntax proposal before implementing, as there are many, and Babel will support 3 (minimal, smart, and F#) as of Babel 7.5.
Hey @jhpratt! We really appreciate you taking the time to report an issue. The collaborators