Talk:Policies/Kdelibs Coding Style: Difference between revisions
No edit summary |
(my pov) |
||
Line 3: | Line 3: | ||
I thought we decided that we always want curly braces, no? | I thought we decided that we always want curly braces, no? | ||
--[[User:Mkretz|Mkretz]] 21:19, 15 February 2007 (CET) | --[[User:Mkretz|Mkretz]] 21:19, 15 February 2007 (CET) | ||
:my pov: According to Zack's attachement this is not the case. As it makes sense to stick to the Qt style for the libs I'd say the current rule is fine. The attachemet also had the final rule '''Feel free to break a rule if it makes your code look bad'''. We should include it as well :) I did not and will not read the whole thread again ;) --[[User:Dhaumann|Dhaumann]] 23:30, 15 February 2007 (CET) |
Revision as of 22:30, 15 February 2007
The document says: "Use curly braces when the body of a conditional statement contains more than one line, and also if a single line statement is somewhat complex."
I thought we decided that we always want curly braces, no? --Mkretz 21:19, 15 February 2007 (CET)
- my pov: According to Zack's attachement this is not the case. As it makes sense to stick to the Qt style for the libs I'd say the current rule is fine. The attachemet also had the final rule Feel free to break a rule if it makes your code look bad. We should include it as well :) I did not and will not read the whole thread again ;) --Dhaumann 23:30, 15 February 2007 (CET)