Code Style Bikeshed 1/n: Break before Brace or Brace before Break?

David Bremner david at tethera.net
Sun Dec 18 04:04:32 PST 2011


In id:"1324135695-15487-1-git-send-email-david at tethera.net" we started
discussing the use of uncrustify (or some equivalent tool) to enforce
code style. In order for this to work, we would need to be a bit more
rigid about style.

So my sunday morning bikeshed-bait is do we want 

if (...) {
}

or 

if (...) 
{
}

(and similarly for 'switch', 'for', 'while')

If I look at a small sample of Carl's original code it seems like the
former is more typical. But I might be biased because that is what I
prefer.

d


More information about the notmuch mailing list