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

Simplify output #8

Merged
merged 1 commit into from
Aug 6, 2019
Merged

Simplify output #8

merged 1 commit into from
Aug 6, 2019

Conversation

luispedro
Copy link

This builds on #7 and adds one more commit that is a pure refactor. I find this version cleaner as it avoids repeating logic and building and deconstructing Maybe objects, but it is not a bug, so I separated it to make it easier to accept #7 (which is a bona fides bug fix) without getting into a discussion about style.

@snoyberg
Copy link
Owner

snoyberg commented Aug 5, 2019 via email

Both call sites for the previous function were deconstructing its
results in the same way, it is simpler to merge the behaviour into a
single function
@luispedro
Copy link
Author

This is now up-to-date wrt master: it's a single commit which avoids repeating some logic in multiple locations.

Copy link
Owner

@snoyberg snoyberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement, I especially appreciate killing off a partial function!

@snoyberg snoyberg merged commit 1664366 into snoyberg:master Aug 6, 2019
@luispedro luispedro deleted the simplify_output branch August 6, 2019 11:27
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

Successfully merging this pull request may close these issues.

2 participants