Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Student-Style Brace and Indent Guidelines:
- Formatting Guideline:
- Avoid a sense of structure and order when aligning statements and braces.
- Rationale:
- To convey a sense of independence, rebelliousness from the norm -- a free thinker.
- Example of what not to do:
- struct Foo
- {
- int x; // ...
- int y; // ...
- int z; // ...
- };
- This conveys a sense of structure, discipline. It is wrong!
- Correct example:
- struct Foo {
- int x; // ...
- int y; // ...
- int z; // ...
- };
- Note that it is fine to align 'y' and 'z' here provided that the comments on the
- line do not align with each other.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement