Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Avoid using the pipe operator just once. #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RudManusachi
Copy link

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

@shdblowers
Copy link
Collaborator

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.

@RudolfMan
Copy link

RudolfMan commented Oct 9, 2019

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

@shdblowers
Copy link
Collaborator

I guess the key word in his response is

mostly

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants