News for hackers. Stuff that matters.
Re:Ask HN: What are your favorite examples of elegant software? by t-3 on Monday May 02, 2022 @03:23PM (#31239609)
> - Bool - how hard is it to get true and false right?

I think this is actually much more complicated than it seems at first thought. There are a lot of different ways to represent booleans, each with their own advantages, and then the hardware has it's own ideas that might need to be considered. I'm not sure that there's any way to do bool that doesn't lead to pain somewhere.

Re:Ask HN: What are your favorite examples of elegant software? by kevin_thibedeau on Tuesday May 03, 2022 @12:25AM (#31244602)
C23 is making true and false _Bool typed values.