[Development] kdelibs coding style
Charley Bay
charleyb123 at gmail.com
Tue Apr 30 15:37:36 CEST 2013
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.
--charley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130430/48d3db6f/attachment.html>
More information about the Development
mailing list