-
Notifications
You must be signed in to change notification settings - Fork 0
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
Encourage alignment of statements #8
Comments
First one looks cleaner and easier to read. I vote for first style. |
It is harder to maintain but that is usually outweighed by the better readability so 👍 |
I think maybe if one needs to define more than five or so variables at once then yes, this style would make sense, but for simple one liners this would just be unnecessary. Also looks very old school imo. |
It makes no difference for one liners. I'd definitely make it a recommendation rather than a strict rule. If you only have 2-3 variables that are completely unrelated, it probably doesn't make sense. But for the cases like above (which are fairly common), it improves readability quite a bit. |
Says someone who uses vim as their primary text editor. |
Vim is timeless 😛 |
@mkristien can you get your vote in as well so it's clear we have a difference of +3? Then someone create a PR. |
This can be in variable declarations or statements:
vs
The text was updated successfully, but these errors were encountered: