4 ms·
Can constructors and destructors still go counter to this idea if needed?
by cma 2y ago
Can constructors and destructors still go counter to this idea if needed?
- sunshowers 2y agoI think values should generally only be combined into a structure at the end (no half-formed structures with null data, no calls on methods that work on half-formed structures). Destructors are more complicated, there's definitely times where you have to violate invariants that otherwise are always the case.