Re:Pipe Operator (|>) For JavaScript
by jameshart on Friday January 20, 2023 @02:54PM
(#34458851)
But then why would you call all those different variables ‘%’?
Reading this version though I also notice something else that the F# style enables that the Hack style doesn’t which is that it supports destructuring. So in F# style, I can more easily make pipe steps that pass on multiple values in a structured object or array, then access them easily down-pipe.
Re:Pipe Operator (|>) For JavaScript
by tracker1 on Friday January 20, 2023 @02:59PM
(#34458932)
Unfortunately F# pipelines have been rejected a few times by TC39 to advance... I used it for a while via Babel/6to5, but I gave up (like with decorators) after many years of no advancement. I doubt I'll see either any time soon.
Reading this version though I also notice something else that the F# style enables that the Hack style doesn’t which is that it supports destructuring. So in F# style, I can more easily make pipe steps that pass on multiple values in a structured object or array, then access them easily down-pipe.