Skip to content

[NFC] Replace type-erased pattern matching with typed if-else blocks #3840

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

Conversation

WowbaggersLiquidLunch
Copy link
Contributor

Motivation: Concrete types are better than Any.

Result: This removes an unreachable default case, and should result in a bit less runtime cost.

This removes an unreachable `default` case, should result in less runtime cost.
@WowbaggersLiquidLunch
Copy link
Contributor Author

@swift-ci please smoke test

@elsh elsh merged commit 0944319 into swiftlang:main Nov 16, 2021
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