3 ms·
To the first point: exceptions have been eschewed, or considered an anti pattern in game development for decades, and for all the reasons given and more. They'r
by dleslie 4y ago
To the first point: exceptions have been eschewed, or considered an anti pattern in game development for decades, and for all the reasons given and more. They're hard to reason about and difficult or impossible to make performant.
The second is a genuine concern, but overcome with factories. If your class needs additional resources beyond memory allocation then those resources need to be acquired before construction, or its construction must support automatic self destruction. It doesn't matter if it's C or C++ you're using, really; you should acquire before use.