Re: Coding Style - C++ constructor initialization list

2015-03-25 Thread Marcos Cardinot
2015-03-25 21:20 GMT-03:00 Thiago Macieira : > On Monday 23 March 2015 05:51:26 Dirk Hohndel wrote: > > > *ClassName::ClassName() :* > > > *x(1),* > > > *y(2),* > > > *z(3)* > > > *{* > > > *}* > > > > This isn't readable for me. Possibly a mail formating issue. > > I thought it was just me... > >

Re: Coding Style - C++ constructor initialization list

2015-03-25 Thread Thiago Macieira
On Monday 23 March 2015 05:51:26 Dirk Hohndel wrote: > > *ClassName::ClassName() :* > > *x(1),* > > *y(2),* > > *z(3)* > > *{* > > *}* > > This isn't readable for me. Possibly a mail formating issue. I thought it was just me... The original in HTML is: ClassName::ClassName() : x(1),

Re: Coding Style - C++ constructor initialization list

2015-03-23 Thread Dirk Hohndel
On Mon, Mar 23, 2015 at 09:44:33AM +0100, Boris Barbulovski wrote: > or maybe like this: > > *ClassName::ClassName()* > * : **x(1)* > * , **y(2)* > * , **z(3)* > *{* > *}* > > Benefits: > * Members are aligned(easy to read) > * Eazyer for adding new members to the end of the list(no need to worry

Re: Coding Style - C++ constructor initialization list

2015-03-23 Thread Dirk Hohndel
On Mon, Mar 23, 2015 at 12:59:39AM -0300, Marcos Cardinot wrote: > Hello folks, > > It is just a naive discussion about coding style... =D Our favorite topic :-) > According to the CodingStyle.txt: > > *"- in a C++ constructor initialization list, the colon is on the same line > and* > * conti

Re: Coding Style - C++ constructor initialization list

2015-03-23 Thread Boris Barbulovski
or maybe like this: *ClassName::ClassName()* * : **x(1)* * , **y(2)* * , **z(3)* *{* *}* Benefits: * Members are aligned(easy to read) * Eazyer for adding new members to the end of the list(no need to worry about the comma to last entry) br, Boris.. On Mon, Mar 23, 2015 at 4:59 AM, Marcos Cardi

Coding Style - C++ constructor initialization list

2015-03-22 Thread Marcos Cardinot
Hello folks, It is just a naive discussion about coding style... =D According to the CodingStyle.txt: *"- in a C++ constructor initialization list, the colon is on the same line and* * continuation lines are aligned as the rule above:* * ClassName::ClassName() : x(1), y(2),* * z(3)* * {* * }"*