[Development] kdelibs coding style

Jocelyn Turcotte jocelyn.turcotte at digia.com
Tue Apr 30 17:25:02 CEST 2013


On Tue, Apr 30, 2013 at 07:37:36AM -0600, Charley Bay wrote:
> Samuel sayeth:
> 
> > A good reason for using the
> >
> > Foo()
> >      : x(0)
> >      , y(0)
> > {
> > }
> >
> > syntax for initializer lists after all is to make diffs easier to read
> > when adding or removing a member variable. The same argument could be
> > made for permitting braces for one-line if-statements.
> >
> 
> +1, that's a really helpful style for the base/member initializer list.

+1, if we're really starting a vote. It makes diffs reading, line add/remove and copy-pasting more practical (at least for me).



More information about the Development mailing list