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

Flatten the structure of outputted program #36

Open
tomsik68 opened this issue Oct 4, 2019 · 0 comments
Open

Flatten the structure of outputted program #36

tomsik68 opened this issue Oct 4, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@tomsik68
Copy link
Member

tomsik68 commented Oct 4, 2019

For example, in this snippet:

if (condition) {
    return;
} else {
    /*
    some
    long
    computation
    */
}

The "positive" branch of if statement always returns, so there is no point in having else there. The program would be a lot more readable if the else wasn't there and the block inside else continued with the same indent level as the if statement.

@tomsik68 tomsik68 added the enhancement New feature or request label Oct 4, 2019
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

No branches or pull requests

1 participant