Style guide » History » Version 1

Giulio Moro, 2015-08-20 05:20 PM

1 1 Giulio Moro
h1.  Style guide
2 1 Giulio Moro
3 1 Giulio Moro
You are welcome to contribute to this repository. If you decide to, please follow our style guide (which we have not followed thoroughly 
4 1 Giulio Moro
5 1 Giulio Moro
* use tabs for indentation
6 1 Giulio Moro
* space around every mathematical/binary operator (=, *, +, <<, etc.)
7 1 Giulio Moro
* but no space inside parens ---> if(a == 2) not if( a == 2 ) nor if(a==2)
8 1 Giulio Moro
* space between comment symbol and beginning of text: // Like this
9 1 Giulio Moro
* comments aligned to same indentation as the code