Make `init` factory methods non-static
Opened this issue · 0 comments
stefandebruyn commented
Static factory methods don't make sense when the constructed object can be default-constructed to an uninitialized state. Non-static factory methods would be less obtuse:
// Before
Foo foo;
Foo::init(foo, ...);
// After
Foo foo;
foo.init(...);
Update all init
methods to follow this pattern.