Elixir catch of the day: parentheses
In general parentheses can be omitted in Elixir function calls. so the call
write_line(socket)
is identical to
write_line socket
However, if you are using the pipe operator |> this is not the case. The parentheses are mandatory on usage of the pipeline operator.
Source: Elixir Getting started, in the block quote
Posted on
Dec 21, 2015 at 11:33