+1 On Wed, Dec 3, 2014 at 5:37 PM, Seth Fowler <[email protected]> wrote:
> Yes, looks like it is! It’s not explicitly spelled out though - someone > searching for “initializer list”, say, won’t find it. At a minimum it seems > worth adding an explicit mention in the text. > > - Seth > > > On Dec 3, 2014, at 2:03 PM, Nicholas Nethercote <[email protected]> > wrote: > > > > On Thu, Dec 4, 2014 at 8:54 AM, Seth Fowler <[email protected]> wrote: > >> So I noticed that we don’t say anything about initializer list > formatting in our coding style guide. I’d like to propose that we > standardize this formatting: > >> > >> Foo::Foo(int aBar, char aBaz) > >> : mBar(aBar) > >> , mBaz(aBaz) > >> { > >> …. > >> } > > > > This is already present in the example at > > > https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Classes > : > > > > class MyClass > > : public X // when deriving from more than one class, put each on its > own line > > , public Y > > { > > public: > > MyClass() > > : mVar(0) > > , mVar2(0) > > { > > ... > > } > > ... > > }; > > > > Nick > > _______________________________________________ > dev-platform mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-platform > _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

