Talk:Coding style

From OpenTTD
Jump to: navigation, search

breaking C89 rules

maybe --pedantic to gcc will warn about breaking C89 rules?

It's a good idea, but it's only really useful as a general guide. It won't catch every C89 breakage. -- 01:11, 1 November 2007 (CET)

Truelight's edit to comments?

Why did truelight remove info for documenting statements? Every variable should be commented, I don't understand why this rule was removed. I'm not about to change what a dev wrote... Zojj 07:21, 1 December 2007 (CET)

At the top of the page is written: "Why we require that EVERYTHING is documented" so the statement is redundant. --Skidd13 10:41, 1 December 2007 (CET)

I wrote that. :P But ok. Zojj 18:09, 1 December 2007 (CET)

Inconsistent style

The first style recomendation on this page is to put the first brace for a function on the next line. Further code examples don't follow this recomendation. Should the examples be changed? --Dustin 16:26, 14 August 2009 (UTC)

Note the "for a function". As far as I can see all other examples follow that rule. Yexo 19:30, 14 August 2009 (UTC)
So they do. My mistake. Usually projects implement a single rule about "hanging braces". -- 00:34, 19 August 2009 (UTC)
Personal tools