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

Expand discussion on when to use #expect vs. #require #935

Open
briancroom opened this issue Jan 31, 2025 · 0 comments
Open

Expand discussion on when to use #expect vs. #require #935

briancroom opened this issue Jan 31, 2025 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@briancroom
Copy link
Contributor

The Expectations article briefly describes the behavioral difference between #expect and #require, but doesn't elaborate much on how to decide which one to use. I keep seeing people coming around and asking for advice about this, so it would be nice to expand this discussion a bit more.

@briancroom briancroom added the documentation Improvements or additions to documentation label Jan 31, 2025
@grynspan grynspan added the enhancement New feature or request label Jan 31, 2025
@grynspan grynspan added this to the Swift 6.x milestone Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants