elixir-phoenix-realworld-example-app
elixir-phoenix-realworld-example-app copied to clipboard
Avoid using the pipe operator just once.
I noticed using different styles in different parts As stated in this style guide
# not preferred
some_string |> String.downcase()
# preferred
String.downcase(some_string)
now overall code formatting looks more consistent
I made a similar PR request to elixir-lang/elixir in the past and it got rejected, I think this one just comes down to personal preference.
@shdblowers, hmm.. I just yesterday was looking into style guide and found this one which is approved by José Valim.
I guess the key word in his response is
mostly