[cvs] bogofilter/src lexer.c,1.54,1.55

David Relson relson at osagesoftware.com
Mon Sep 1 19:36:15 CEST 2003


On Mon, 01 Sep 2003 19:26:54 +0200
Matthias Andree <matthias.andree at gmx.de> wrote:

> 
> Hum, we'd use indent because I'm basically hacking away with vim most
> of the time.
> 
> > It seems to work well.  Where we're inconsistent is with compound
> > statements, e.g.
> >
> > for (...){
> > }
> >
> > or
> >
> > for (...) {
> > }
> 
> The second is my preferred.

That's fine, though when the condition is complex I'll sometimes use
multiple lines for it.

> > For conditionals and loops I like ") {", i.e. paren, space, brace. 
> > For functions, I like the { at the start of its own line.  I usually
> > format switches like functions.
> 
> OK. Where we're also inconsistent is if/else.
> 
> I like   } else {   where you add a line break.

Right you are.  I like "}" to be at the end of its line (except possibly
for comments) and "else" to be at the beginning of a line.




More information about the bogofilter-dev mailing list