Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upProposal: Disallow needless `else` statements #810
Comments
This comment has been minimized.
This comment has been minimized.
|
This seems overly prescriptive to me. |
feross
added
the
enhancement
label
Mar 17, 2017
This comment has been minimized.
This comment has been minimized.
|
@tunnckoCore Thanks for the proposal. This rule would disrupt the way that too many people write code and it doesn't prevent bugs or improve code consistency enough to justify the cost to users, in my opinion. Here are the results of the test suite:
10.5% breakage is too high to really even consider a change like this. |
feross
closed this
Apr 4, 2017
This comment has been minimized.
This comment has been minimized.
Daaamn :D Okey, no problem. We only can hope these numbers to get low in time. |
lock
bot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
tunnckoCore commentedMar 3, 2017
Enforces more clean code. For years I have very rare cases when I need
elseor evenelse ifstatements.Fixable, no-else-return