[Mono-dev] Coding guidelines confusion on braces
Miguel de Icaza
miguel at novell.com
Tue May 27 11:16:16 EDT 2008
> Can someone clear up the confusion on whether braces should be on the same
> line as the class/namespace declaration, or on the next line?
Same line, there are a couple of samples on that page.
Jonathan does point a valid and interesting exception that we could
make.
> I once committed a patch in which I moved the braces to the same line as the
> declaration, and was then told it did not match the coding guidelines.
That was wrong, because that is how I like them ;-)
> Should braces for classes/namespaces be on the same line or the next line?
I use same line, but I will not sweat over different lines.
What I guess is not worth doing is making changes for the sake of making
them.
More information about the Mono-devel-list
mailing list