[Development] commas in ctor-init-lists

Thiago Macieira thiago.macieira at intel.com
Thu Jun 2 02:01:58 CEST 2016


On quarta-feira, 1 de junho de 2016 15:06:16 BRT Mark Gaiser wrote:
> The "butt-ugly" style looks more readable to me.
> And imho it reduces the possibility of forgetting a forgetting a comma in
> the begin since then your arguments will look out of alignment.

The compiler won't let you forget, so that's not an argument.

> Funny in the coding style you mention. For operators: "An operator at the
> end of the line is easy to miss if the editor is too narrow." The exact
> same could be said for commas at the end of the line.

I don't like the rule of placing operators at the beginning of the next line. 
I prefer it at the end, which indicates to the reader that the line continues, 
as it doesn't end in either ) or semi-colon.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list