elixir-phoenix-realworld-example-app icon indicating copy to clipboard operation
elixir-phoenix-realworld-example-app copied to clipboard

Avoid using the pipe operator just once.

Open RudManusachi opened this issue 6 years ago • 3 comments

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

RudManusachi avatar May 01 '19 08:05 RudManusachi

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 avatar Oct 09 '19 13:10 shdblowers

@shdblowers, hmm.. I just yesterday was looking into style guide and found this one which is approved by José Valim.

RudolfMan avatar Oct 09 '19 15:10 RudolfMan

I guess the key word in his response is

mostly

shdblowers avatar Oct 11 '19 14:10 shdblowers