News for hackers. Stuff that matters.
Re:The Little Bool of Doom (2025) by thezipcreator on Friday February 13, 2026 @06:35AM (#47001597)
`bool` is useful as a communication device; if you just use `int` (or `int32_t` or whatever) then it's not exactly clear that the value can only hold `1` or `0` unless you explicitly say it in the documentation. with `bool`, it's clear from the get-go that it's only ever `true` or `false`.

There are no comments on this comment yet.