Re:Clang is better than GCC
by hddqsb on Monday November 28, 2022 @03:55AM
(#33771259)
C didn't even have a separate `bool` type until C99 (https://en.cppreference.com/w/c/types/boolean), and even then `true` is simply a macro that expands to 1. The widespread use of int to represent booleans in legitimate code makes it impractical to warn about this practice (at least in existing code).
[ Parent
| on HN ]
There are no comments on this comment yet.