Re:TC39 Pipeline Operator – Hack vs. F#
by ejones on Tuesday September 14, 2021 @05:39PM
(#28531729)
There's a proposal for this: https://github.com/tc39/proposal-partial-application
[ Parent
| on HN ]
Re:TC39 Pipeline Operator – Hack vs. F#
by abecedarius on Tuesday September 14, 2021 @06:31PM
(#28532395)
That's more specialized: it can express
foo(42, ?)
but not what you'd write within this pipe syntax as foo(42, ^) + 1
The tradeoff is that it doesn't need some extra delimiter since the function call is what delimits it. Perhaps that's a better tradeoff, I'm not sure; but for sure we shouldn't have both.