3 ms·
Why deliberately avoid enforcing design constraints? I mean, why not just make everything a void * and cast as needed and promise not to mess up?
by thfuran 5y ago
Why deliberately avoid enforcing design constraints? I mean, why not just make everything a void * and cast as needed and promise not to mess up?
- nedbat 5y agoYou can enforce the constraint, but it shouldn't be in the class itself. How to you make instances for tests?