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

Update documentation to always default: case open enums #1087

Open
ktoso opened this issue Nov 7, 2022 · 0 comments
Open

Update documentation to always default: case open enums #1087

ktoso opened this issue Nov 7, 2022 · 0 comments
Labels
1 - triaged Ticket makes sense and is well defined, ready to be worked on t:docs user-feedback

Comments

@ktoso
Copy link
Member

ktoso commented Nov 7, 2022

We have a number of public enums that we switch over, and people SHOULD switch over.
Some of them have _PLEASE_DO_NOT_EXHAUSTIVELY_MATCH_THIS_ENUM_NEW_CASES_MIGHT_BE_ADDED_IN_THE_FUTURE which is a workaround for the lack of "open" enums in Swift.

We should add more docs about this, and make sure our docs always switch with a default: too

This is a workaround for https://forums.swift.org/t/extensible-enumerations-for-non-resilient-libraries/35900/36

@ktoso ktoso added 1 - triaged Ticket makes sense and is well defined, ready to be worked on t:docs user-feedback labels Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - triaged Ticket makes sense and is well defined, ready to be worked on t:docs user-feedback
Projects
None yet
Development

No branches or pull requests

1 participant