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

SWEEP: Use pattern matching, #667 #1082

Merged
merged 3 commits into from
Jan 1, 2025
Merged

Conversation

paulirwin
Copy link
Contributor

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a change, please open an issue to discuss the change or find an existing issue.

Uses pattern matching instead of type-check-and-cast, and uses negated pattern matching where applicable.

Fixes #667

Description

See #667 for details, plus a sweep of using negated pattern matching.

@paulirwin paulirwin added the notes:improvement An enhancement to an existing feature label Jan 1, 2025
@paulirwin paulirwin merged commit d95a40b into apache:master Jan 1, 2025
267 checks passed
@paulirwin paulirwin deleted the issue/667 branch January 1, 2025 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes:improvement An enhancement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace type-check-and-cast sequence with pattern matching
1 participant