That is the question:
// To:
value |> function_foo() |> function_bar()
// Or:
value |> function_foo |> function_bar
Me personally, to () because it's feel clearer by make it look more like a function call. It's also made it look more consistent with pipe to function with additional arguments:
value
|> foo()
|> bar(1, 2, 3)
|> baz()
// VS:
value
|> foo
|> bar(1, 2, 3)
|> baz
But stdlib and many other libs go with "not to ()"...
Gleam currently doesn't have any style guide about this, but I wish it does... But what do you think?