Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
binarycrusader
on March 4, 2020
|
parent
|
context
|
favorite
| on:
Hundred Year Mistakes
Ah, but C99 has a bool type: _Bool. Also available as 'bool' via stdbool.h:
https://en.cppreference.com/w/c/keyword/_Bool
But I otherwise agree with you.
codebje
on March 6, 2020
[–]
It also has silent type coercion, so it will happily promote your _Bool to an int, neatly voiding any benefits the type might have had to offer.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://en.cppreference.com/w/c/keyword/_Bool
But I otherwise agree with you.