Re:Babel 7.5
by ianwalter on Sunday July 07, 2019 @09:52AM
(#20375066)
I’m excited for pipelines but I think the simple pipeline feels much more natural than the “smart” one and allows for destructuring props. Also, am I the only one that feels like the way await is handled in pipelines is backwards? Why not just add await before the function call like a normal function call?
[ Parent
| on HN ]
Re:Babel 7.5
by kristiandupont on Sunday July 07, 2019 @11:49AM
(#20375659)
I guess it's because of potential ambiguity, it's discussed here: https://github.com/tc39/proposal-pipeline-operator/issues/14...
Thanks for linking. It doesn’t look like that discussion includes the “F#” arrow function style discussed in the babel release. I believe using this style would get rid of the ambiguity they were discussing since it could be handled in the same way as a async function outside of pipelines. I really like the consistency of that approach.