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

Use sealed traits for enums #479

Merged
merged 1 commit into from
Aug 16, 2018
Merged

Conversation

mrdziuban
Copy link
Contributor

This has two main benefits:

  • Allows exhaustive pattern matches on enums
  • Allows observation of all members at compile time using knownDirectSubclasses

Copy link
Owner

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

LGTM pending CI

@mrdziuban
Copy link
Contributor Author

Thanks @eed3si9n, it looks like the tests failed because the SOAP service for getting stock quotes was shut down.

@eed3si9n eed3si9n merged commit 3c8f978 into eed3si9n:master Aug 16, 2018
@mrdziuban mrdziuban deleted the enum-sealed-trait branch August 16, 2018 20:10
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