Jon Snader wrote:
> Indeed. This (_Bool) does seem to be a solution in search of a
> problem.  Is there anyone (other than a few refugees from Pascal)
> who believes that C suffers from its lack of a formal boolean
> type?

Obviously there were.

Numerous C programmers have created their own Boolean support,
e.g.:
        typedef int bool;
        #define false 0
        #define true 1
The fact that so many have done so argued that there was value
in a standardardized facility along those lines.

As to why the programmers thought it was worth doing, perhaps
they like for data types to match their function, so the source
code becomes more self-documenting and easier to understand;
"int" conveys nothing about a Boolean nature, and actually
suggests some sort of integral measurement of some property.

Reply via email to