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

Rewrite to remove return statements where possible #7

Open
riftEmber opened this issue Oct 6, 2020 · 2 comments
Open

Rewrite to remove return statements where possible #7

riftEmber opened this issue Oct 6, 2020 · 2 comments

Comments

@riftEmber
Copy link
Member

Also, do that rewriting

@riftEmber riftEmber changed the title disallow return statements, except at the end or where they can be rewritten to be at the end disallow return statements, except when they can be rewritten out Nov 2, 2020
@riftEmber
Copy link
Member Author

I suppose that a single return statement should be allowed at the end of a function.

@riftEmber riftEmber changed the title disallow return statements, except when they can be rewritten out Disallow mid-function return statements, except when they can be rewritten out Oct 24, 2021
@riftEmber
Copy link
Member Author

riftEmber commented Oct 26, 2021

Work done for #37 disallows return statements that are inside any nesting, and disallows any statements to follow a return statement. This effectively implements the restrictions of this issue, except for the rewriting. Rewriting is a separate problem which this issue will now be about.

@riftEmber riftEmber reopened this Oct 26, 2021
@riftEmber riftEmber changed the title Disallow mid-function return statements, except when they can be rewritten out Rewrite to remove return statements where possible Oct 26, 2021
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

No branches or pull requests

1 participant