Coding Style - C++ constructor initialization list
Dirk Hohndel
dirk at hohndel.org
Mon Mar 23 05:52:57 PDT 2015
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
> about the comma to last entry)
Downsides: UGLY and hard on my eyes.
I know quite a few projects do this, I just don't like this. Sorry
/D
More information about the subsurface
mailing list