Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
c0balt
on Oct 3, 2023
|
parent
|
context
|
favorite
| on:
What’s New in C in 2023?
Finally, no more `#define true 1`.
Alifatisk
on Oct 3, 2023
[–]
You can just include stdbool.h
Works since C99
c0balt
on Oct 3, 2023
|
parent
|
next
[–]
I know, in my university tasks however we were not allowed to include additional files, like stdbool.h. it has become a habit afterwards.
Gibbon1
on Oct 3, 2023
|
parent
|
prev
[–]
Always irked me they created an include for just that instead of sticking it in stdint.h
DerekL
on Oct 3, 2023
|
root
|
parent
[–]
Probably because some code already defines “bool”, “true”, and “false”, so adding those to an existing header would break it.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: