4 ms·
I agree...mostly. Of course, doing this adds overhead to the developer at the time the code is written. Instead of just writing 'bool', you need to go into the
by Night_Thastus 2y ago
I agree...mostly.
Of course, doing this adds overhead to the developer at the time the code is written. Instead of just writing 'bool', you need to go into the header and define a new enum and decide what it and each of its entries will be named, and make sure that it is propagated up through any dependencies that will interact with that function and so on.
Frankly, that can be a lot more work - especially in a large legacy code base.
Sometimes just a simple Bool is easier.