Skip to content

[SpaceEngine] Remove isUseful and don't include redundant spaces. #17805

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

Merged
merged 2 commits into from
Jul 7, 2018

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 6, 2018

  • Since empty sub-spaces are eagerly pruned and disjuncts/constructors
    are converted to empty early, isUseful could be replaced with !isEmpty().

  • There is no reason to include spaces which have already been covered
    by some other cases in the switch statement, excluding such cases
    helps to reduce some of the work done by exhaustiveness checker.

xedin added 2 commits July 6, 2018 14:50
There is no reason to include spaces which have already been covered
by some other cases in the `switch` statement, excluding such cases
helps to reduce some of the work done by exhaustiveness checker.
Since empty sub-spaces are eagerly pruned and disjuncts/constructors
are converted to empty early, `isUseful` could be replaced with `!isEmpty()`.
@xedin
Copy link
Contributor Author

xedin commented Jul 6, 2018

@swift-ci please test

@xedin xedin merged commit 472031f into swiftlang:master Jul 7, 2018
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.

1 participant