[petsc-dev] Style Guide: How to format single-line if/for/while-blocks?

Mark F. Adams mark.adams at columbia.edu
Mon Jan 21 21:49:06 CST 2013

>      if (xxx) {
>         something;
>         somethingelse;}
>      else {
>         yet another thing;}
> (python like) but I am so damn use to the } on its own line I don't want to use this condensed form.

And some folks don't like "egyptian" braces and want { on its own line, and why not if } needs its own line why not  { ?

More information about the petsc-dev mailing list