Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change order of parameters to be more pipe friendly #2

Open
CoffiDev opened this issue May 17, 2017 · 0 comments
Open

Change order of parameters to be more pipe friendly #2

CoffiDev opened this issue May 17, 2017 · 0 comments
Assignees

Comments

@CoffiDev
Copy link

I believe that the functionfrom_seconds(atom, seconds) and to_seconds(atom, multiplier) from the module Convert should have the parameters in the opposite order, because is more likely to pipe the value of the seconds through a pipe than the value of the atom.

Example:

Convert.from_seconds(:hours, foo())

foo() |> Convert.from_seconds(:hours)

@ZuraGuerra ZuraGuerra self-assigned this May 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants