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 Xu hướng
- 1. Cyber Monday 52.7K posts
- 2. Admiral Bradley 4,452 posts
- 3. Milagro 21.9K posts
- 4. TOP CALL 11.8K posts
- 5. GreetEat Corp. N/A
- 6. #GivingTuesday 3,319 posts
- 7. Shakur 6,960 posts
- 8. MRIs 2,644 posts
- 9. MSTR 31K posts
- 10. Hartline 3,200 posts
- 11. #Rashmer 19.7K posts
- 12. Toosii 1,407 posts
- 13. Alina Habba 39.2K posts
- 14. Adam Thielen 2,903 posts
- 15. Check Analyze N/A
- 16. Token Signal 4,005 posts
- 17. Trump's MRI 13.9K posts
- 18. LA PIJAMADA VIRAL 60.6K posts
- 19. #WorldAIDSDay 37.2K posts
- 20. Marty Supreme 4,005 posts
Something went wrong.
Something went wrong.