|
|
|
|
|
by porridgeraisin
416 days ago
|
|
Ah sorry I didn't explain properly, I meant a |> await f()
and a |> (await f())
Might be expected to do the same thing.But the latter is syntactically undistinguishable from a |> await returnsF()
What do you think about a |> f |> g
Where you don't really call the function with () in the pipeline syntax? I think that would be more natural. |
|
For the last example, it would look like:
assuming f() is still async and returns a function. g() must be a function, so the parenthesis have to be added.