Skip to content

[stdlib] Adopt typed throws in some Dictionary APIs and some Sequence APIs #77957

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Azoy
Copy link
Contributor

@Azoy Azoy commented Dec 4, 2024

Another round of typed throws adoption in the stdlib. This time I've opted for Dictionary.compactMapValues, Dictionary.mapValues, Sequence.filter, Sequence.forEach, and both variants of Sequence.reduce. I chose these few particularly because of folks reaching for them and surprised they weren't already typed (more specifically, mapValues and filter, but the rest were close enough and easy enough to do as well.

Resolves: rdar://140307946

@Azoy Azoy requested a review from a team as a code owner December 4, 2024 19:49
@Azoy
Copy link
Contributor Author

Azoy commented Dec 4, 2024

@swift-ci please test

2 similar comments
@Azoy
Copy link
Contributor Author

Azoy commented Dec 4, 2024

@swift-ci please test

@Azoy
Copy link
Contributor Author

Azoy commented Dec 16, 2024

@swift-ci please test

@Azoy Azoy force-pushed the some-typed-throws branch from 5013ee7 to 59e4976 Compare May 14, 2025 18:02
@Azoy
Copy link
Contributor Author

Azoy commented May 14, 2025

@swift-ci please test

@kperryua
Copy link
Contributor

Awesome!

Given this pending PR: #79937 should we be using @abi instead of @_silgen_name for the ABI compat implementations?

@Azoy
Copy link
Contributor Author

Azoy commented May 14, 2025

Yeah we should use those, but if this lands first then I'll make a followup. If that lands first I'll edit this PR.

@Azoy
Copy link
Contributor Author

Azoy commented May 21, 2025

@swift-ci please test

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