Advertisement
Guest User

Untitled

a guest
Dec 14th, 2015
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. Student-Style Brace and Indent Guidelines:
  2.  
  3. Formatting Guideline:
  4. Avoid a sense of structure and order when aligning statements and braces.
  5.  
  6. Rationale:
  7. To convey a sense of independence, rebelliousness from the norm -- a free thinker.
  8.  
  9. Example of what not to do:
  10. struct Foo
  11. {
  12. int x; // ...
  13. int y; // ...
  14. int z; // ...
  15. };
  16.  
  17. This conveys a sense of structure, discipline. It is wrong!
  18.  
  19. Correct example:
  20.  
  21. struct Foo {
  22. int x; // ...
  23. int y; // ...
  24. int z; // ...
  25. };
  26.  
  27. Note that it is fine to align 'y' and 'z' here provided that the comments on the
  28. line do not align with each other.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement