[haiku-development] Re: coding style (was: Cleaned up Application.h)

  • From: "François Revol" <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 03 Mar 2008 00:11:21 +0100 CET

> "Michael Lotz" <mmlr@xxxxxxxx> wrote:
> > Count me as one of the proponents of the "alternative" format. We
> > had
> > this discussion a few times now and I think we always came to the
> > conclusion that it is really a matter of taste and being used to.
> [...]
> > P.S.: While we are at discussing matters of taste, we could also
> > again
> > argue about the pros and cons of "char *variable;" and "char*
> > variable;" ;-)
>
> Since I was more or less the only proponent of our current style here
> (IIRC), to get this over with, how about we compromise to the
> following:
> * use column style for classes

While it seems more readable, it's harder to get automatically from an
editor (don't know how to do that with XEmacs... yet)

> * don't indent public/private (saves a tab)
> * use "char* variable" instead of "char *variable" in C++ code
> * don't use ", fMyMember(...)" initializers (my greetings to Stippi ;
> -
> )), but "fMyMember(...),"

Hmm I'll have to update http://revolf.free.fr/beos/init.el


François.

Other related posts: