psifidotos / workflow-project

This is an effort to create a KDE Plasmoid that integrates the main Activities, Virtual Desktops and Tasks Functionalities from Plasma Desktop in just one component.
http://workflow.opentoolsandspace.org/
GNU General Public License v2.0
11 stars 2 forks source link

One line if statements #45

Closed mdaffin closed 11 years ago

mdaffin commented 11 years ago

What is your preference on one line if statements?

1)

if (condition) statement;

2)

if (condition)
    statement;

3)

if (condition) {
    statement;
}

Just so I know which to use when re-factoring the code as I find it is best to keep to one style.

PS: I know this isn't really an issue, but there is no other way to discuss things like this on github

psifidotos commented 11 years ago

No problem at all,

I usually use the second (2)