This repository has been archived by the owner. It is now read-only.
Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upIndent 2 levels for line continuations #20
Comments
This comment has been minimized.
This comment has been minimized.
|
The indentation shown in that file, where values are wrapped to the level of their containing delimiters (e.g. args to the argument list) is pretty universal in my experience reading Rust code. It also aids in readability, because it makes it immediately obvious what the "scope" the line continuation is inside. I could see an argument to be made for a 2-level indentation when the line continuation doesn't have a "scope", e.g. your example of |
superlukas
closed this
Aug 30, 2016
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
superlukas commentedJul 12, 2014
I'm talking about this guy:
Another example:
That's how Clang-Format does it anyway ...
Edit: The reason I like and use this style is that it visually sets apart continuations from blocks.
I'm talking about this file.