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 1 commit into from Aug 16, 2018


Copy link

This has two main benefits:

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

Copy link

@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

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 Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants