Common code indentation (follow-up to 2007 discussion)

Derek Atkins warlord at MIT.EDU
Mon Jun 8 10:58:34 EDT 2009


Charles Day <cedayiv at gmail.com> writes:

> I strongly prefer -bl to -br. Easier to visually match parens makes it
> easier to read, harder to make mistakes. It adds lines, but is worth it in
> my opinion. I like the rest, though personally I prefer two spaces for
> indents rather than four. It helps reduce line breaks and I still find it
> quite readable.

Me too.  I prefer:

  if (....)
  {
    ....
  }
  else
  {
    ...
  }

However I do like:

  do
  {
    ...
  } while (...);

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list