4 ms·
> Booleans can be true, false or maybe. > Technical info: Booleans are stored as one-and-a-half bits. Technically, ternary values would be ~1.5849 bits.
by ginko 3y ago
> Booleans can be true, false or maybe.
> Technical info: Booleans are stored as one-and-a-half bits.
Technically, ternary values would be ~1.5849 bits.
- humbugtheman 3y agoSorry to interrupt...
- bennettnate5 3y agoPerhaps maybe values are only _mostly_ represented, such that storing a `maybe` will baybe result in true or false actually being stored, contingent on the compiler and surrounding code. Thus, maybe accurately describes itself--storing a maybe will maybe store a maybe. Perfection.