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

Make run return Never #150

Closed
wants to merge 1 commit into from
Closed

Make run return Never #150

wants to merge 1 commit into from

Conversation

helje5
Copy link

@helje5 helje5 commented Jul 30, 2020

If an API method is designed to never return, it should be marked as returning Never. This way Swift will warn you if you add code after a call to such a method.

If an API method is designed to never return, it should be marked as returning `Never`. This way Swift will warn you if you add code after a call to such a method.
@swift-server-bot
Copy link

Can one of the admins verify this patch?

3 similar comments
@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@fabianfett
Copy link
Member

@swift-server-bot test this please

@helje5
Copy link
Author

helje5 commented Jul 30, 2020

Note: Other run style methods might need this treatment (if deemed appropriate).

Copy link
Member

@fabianfett fabianfett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@helje5
Copy link
Author

helje5 commented Jul 31, 2020

Note that this is API semver major. Which probably triggers the errors. I'll turn the PR into an Issue.

@tomerd
Copy link
Contributor

tomerd commented Jul 31, 2020

thanks @helje5 we are not at 1.0 yet, so this should be fine imo

@fabianfett wdyt?

@helje5
Copy link
Author

helje5 commented Jul 31, 2020

I've created #151 to track this.

@fabianfett
Copy link
Member

@tomerd I think this would be a great addition and something we should get in before 1.0

@tomerd tomerd added the enhancement New feature or request label Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants