Talk:Coding convention

From Unvanquished
Jump to: navigation, search

I have added some conventions from the readings of the code, but I might be wrong, especially about spaces in ifs. I have noticed that some places uses writings like

if ( foo )

and some other with

if( bar )

so some confirmations could be useful.



There is not clearly defined convention for the code, although id software probably had one (doom3's is on the web). If we are to write a coding convention document, I'd rather poll everyone to see what we would like to have, instead of sticking to the old, implicit one. For example I'd change the indent style to K&R or 1TBS. Also when you use a talk page you can put a signature (--~~~) so that we know who said what. --Kangz (talk)