Skip to content

Use throwsClause#672

Open
d-date wants to merge 1 commit into
swiftlang:mainfrom
d-date:fix
Open

Use throwsClause#672
d-date wants to merge 1 commit into
swiftlang:mainfrom
d-date:fix

Conversation

@d-date
Copy link
Copy Markdown

@d-date d-date commented Dec 6, 2023

Replace deprecated property

@allevato
Copy link
Copy Markdown
Member

allevato commented Dec 6, 2023

Rather than just switch away from the deprecated property, we should consider what kind of breaking we may want inside the clause when a type is given. Without testing it to see what the output would be, I think we'd want to group around the whole throws(...) clause and then add breaks inside the parentheses, in case there's some degenerate situation where the name of the thrown type is extremely long or needs to break.

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