3 ms·
This is how you get the equivalent of `if err != nil { return err; }` everywhere in your codebase. We've already come to the conclusion that this pattern is ter
by dymk 8y ago
This is how you get the equivalent of `if err != nil { return err; }` everywhere in your codebase. We've already come to the conclusion that this pattern is terrible.
What you really need is to separate object allocation from construction. But then you're adopting an object model that C++ just doesn't support.