When classes have an “isValid” method or similar, the code using them often is less clear and harder to maintain. If possible, validity should be an invariant that can not […]
The post isValid()? Establish invariants and avoid zombie objects appeared first on Simplify C++!.