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

Remove huge switch statement and add Applier() interface instead. #1

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

Conversation

superchalupa
Copy link

Make it easier to add future extensibility by removing the big case statement in favor of an Applier() interface.

Signed-off-by: Michael Brown [email protected]

@jen20
Copy link
Owner

jen20 commented Oct 24, 2017

This is not a bad alternative approach - though personally I prefer the more functional style which results from a switch statement centralising the fold logic in one place. I'll update the post to reference this though! Thanks for the pull request!

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