3 ms·
Nothing is the C family simply prevents mistakes. It's always more complex than that. The bool type prevents a lot of kinds of mistakes, but opens your code to
by marcosdumay 13y ago
Nothing is the C family simply prevents mistakes. It's always more complex than that.
The bool type prevents a lot of kinds of mistakes, but opens your code to a lot of new types. The problem is that if you have a lot of experience in not using it, you already learned how to avoid those first mistakes, but all that experience is useless for dealing with the newly introduced ones.
My opinion is that the bool is a good construct. It's a good idea to use it on new code, but first you must understand it, otherwise you won't get a fighting chance.