ever see those videos pointing out how bools can be described by other information? generally, bools are often used to describe whether something exists or not "isPublished", true or false? no, it has a publish date. it's obviously published. tutorial ah example but, anyway
One of the core learnings for me from Meeting C++ 2025 was when James McNellis showed that bool has 3 not two possible values. Thats its not just true and false, but can also be undefined/not initialized.
This gonna get clearer when the lightning talk gets published. While bool is true or false, it occupies often a byte in memory, which can hold more states then the two. Which leads to problems with corrupted data, the optimizer assuming only two values or logic building on this.
United States Trends
- 1. Giants 76K posts
- 2. #WWERaw 61.4K posts
- 3. Patriots 111K posts
- 4. Drake Maye 20.4K posts
- 5. Dart 31.8K posts
- 6. Dillon Brooks 1,900 posts
- 7. Diaz 34K posts
- 8. Gunther 13.1K posts
- 9. Pats 14.3K posts
- 10. Devin Williams 6,878 posts
- 11. Ryan Nembhard 1,917 posts
- 12. Younghoe Koo 5,538 posts
- 13. Mets 17.8K posts
- 14. Joe Schoen 2,528 posts
- 15. Abdul Carter 9,187 posts
- 16. Kafka 7,700 posts
- 17. Devin Booker 1,816 posts
- 18. Clippers 11.7K posts
- 19. LA Knight 12.8K posts
- 20. #RawOnNetflix 1,924 posts
Something went wrong.
Something went wrong.