News for hackers. Stuff that matters.
Re:F# Pipeline Operator in JavaScript with Babel by wwwigham on Tuesday February 04, 2020 @12:37PM (#22238427)
If I recall correctly, it's because the proposal[1] was last presented to committee in March 2018[2], and since then it's been essentially deadlocked as the committee members can't agree upon an "f#" style operator vs a "hack" style operator vs a "smart mix" of the two. Personally, I hate placeholder sigils and magic "context" variables (and hope they have no place in JS), so a simple "left operand becomes first argument in call to right operand" is all I'd really want.

[1] https://github.com/tc39/proposal-pipeline-operator [2] https://github.com/tc39/notes/blob/master/meetings/2018-03/m...

Re:F# Pipeline Operator in JavaScript with Babel by jkoudys on Tuesday February 04, 2020 @07:23PM (#22242702)
Same - the context variables are really for method extractions (e.g. the many times people used to call Array.prototype.slice on something). It's be easy in TS since `this` is already treated as special in function-arg contexts.