unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Code Style Bikeshed 1/n: Break before Brace or Brace before Break? 
@ 2011-12-18 12:04 David Bremner
  2011-12-18 15:50 ` Dmitry Kurochkin
  0 siblings, 1 reply; 6+ messages in thread
From: David Bremner @ 2011-12-18 12:04 UTC (permalink / raw)
  To: Notmuch Mail


In id:"1324135695-15487-1-git-send-email-david@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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-01-12 17:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-18 12:04 Code Style Bikeshed 1/n: Break before Brace or Brace before Break? David Bremner
2011-12-18 15:50 ` Dmitry Kurochkin
2011-12-18 16:12   ` Tomi Ollila
2011-12-18 16:18     ` Dmitry Kurochkin
2012-01-12 17:18       ` Pieter Praet
2011-12-18 17:13     ` Austin Clements

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).